You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Pages: 1
#1 2020-09-16 09:59:49
- Pitbullb
- New Member
- Registered: 2020-09-16
- Posts: 2
Overpass not returning Wikidata
Hi all,
can someone give me a hint my overpass query does not return the Wikidata property for "Wahlstedt" even so Wahlstedt has one?
[out:json];
(
node(around:10000.0,53.9528,10.2099)["place"="town"];
);
(._;>;);
out; https://www.openstreetmap.org/relation/422875
Thank you for your help.
Offline
#2 2020-09-16 12:02:34
- RicoElectrico
- Moderator
- From: Trójmiasto
- Registered: 2012-07-01
- Posts: 1,850
Re: Overpass not returning Wikidata
The node does not have Wikidata property:
Offline
#3 2020-09-16 14:57:38
- Pitbullb
- New Member
- Registered: 2020-09-16
- Posts: 2
Re: Overpass not returning Wikidata
OK. Got it.
But how can I search for this particular Relation as "rel" is not showing it as a result
Offline
#4 2020-09-17 07:04:28
- Maarten Deen
- Member
- Registered: 2010-05-20
- Posts: 490
Re: Overpass not returning Wikidata
You're now searching for nodes with a place=town tag. If you're looking for relations, you do something like relation(around:10000.0,53.9528,10.2099)["place"="town"];
Since this relation does not have a place=town key, you will get no results. You probably want something like
[out:json];
(
relation(around:10000.0,53.9528,10.2099)["admin_level"="8"];
);
(._;>;);
out; This will give all admin_level 8 borders. Then you have to look for Wahlstedt to get the wikidata.
So maybe do something like this directly
[out:json];
(
relation(around:10000.0,53.9528,10.2099)["admin_level"="8"]["name"="Wahlstedt"];
);
(._;>;);
out; Offline
Pages: 1