Hi OSMappers, I'm using overpass to get all the suburbs of a city. I can do it by setting this option: area[name="CITY NAME"] but what I want to is to get the infos by the ID of the city instead. Is it possible to do something like this? area[id="CITY ID"] This is my actual url:
Thanks in advance! asked 11 Jun '17, 10:26 carapace |
If by city id you mean an OSM id for an object representing a city, there is a mapping between OSM ids and Overpass areas. There is decent discussion of how it works in the documentation: http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#By_area_.28area.29 answered 11 Jun '17, 14:15 maxerickson |