Given a node number or a way number, typically a street but also any object, what are the API, XAPI or overpass API HTTP queries to send, and what is the algorithm to process the replies, to determine the relation number of which municipality, province, country, landuse, whichever polygon, etc... which that object is inside? Only OSM data must be used via the Web. But this may of course be best translatable to a query system of local OSM data, notably inside a mobile device without dialing external sources.
asked 20 Feb '13, 04:28 GentilPapou |
In general, you can get the areas
In all cases, you need to replace ID with the object id, or LAT and LON with latitude and longitude. You need to prepend For more details, you can have a look at the documentation of the is_in statement. To make sense of the returned data, you may need to read the documentation of the admin_level key. answered 20 Feb '13, 06:56 Roland Olbricht Very, very neat answer, thanks a lot.
(08 Mar '13, 18:26)
GentilPapou
|