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

Finding GPS coordinate country/region/city using OSM

0

I would like to create shapefiles which I'll use in my program to determine the country, region and city of a given GPS coordinate. Eventually I would want to cover the entire world, but I'm ok with starting with one country. What's the right way to do that?

asked 09 Apr '20, 11:08

nndaniel's gravatar image

nndaniel
21112
accept rate: 0%

Unsure about the purpose of a shapefile but look up Overpass ql 'is_in' using co-ordinates.
https://help.openstreetmap.org/questions/74052/get-enclosing-borders

(09 Apr '20, 14:40) DaveF

Source code available on GitHub .