This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Open Street Map how to get city based on street?

0

How are the nodes id connected to the city? The streets which are directly connected to the city a very few. Most of the streets are not connected to anything. However each street is connected to a node. Is there a way to extract the city or suburb based only on the streets information? Like NodeIds, longitude, latitude etc.?

asked 19 Nov '18, 19:19

Muntean%20Octavian's gravatar image

Muntean Octa...
31223
accept rate: 0%

edited 19 Nov '18, 21:32

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


One Answer:

3

City based only on longitude, latitude? What you mean is called "reverse geocoding". See

If that does not help, please describe your use case.

Please note, that although you do not use maps, you still need to obey our few license requirements and (if you do not run your own server) the usage restrictions/terms of the server which you will be using.

answered 19 Nov '18, 21:32

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 25 Nov '18, 14:52

Source code available on GitHub .