Openstreetmap (Overpass API): Get nearest Node with a special tag -


i got point on map , i'm trying name of city (or suburb) in point is. first attempt this:

<query type="node">    <bbox-query {{bbox}}/>       <has-kv k="place" v="suburb"/> </query> <print/> 

but won't work me, if suburb-node isn't in bounding-box. there around-, nearest- or is-in-condition node?

thanks lot!

if looking city, country or otherwise named place given coordinate in, better of using geocoder. nominatim provides geocoding capabilities based on osm data.

to answer original question: if feature searching not inside bounding box, can of course try extending bounding box. there around keyword searching something near else. note return all data matching given tags, not closest 1 given point. furthermore because overpass not geocoder won't work correctly features mapped area or relation instead of simple node.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -