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

getting place names from nominatim

0

The web tool at https://www.openstreetmap.org/search?query=... shows a great variety of alternate / non-english place names, eg for cities; how would I find those thru the nominatim API ? I cannot seem to find documentation on how to find tags by ID.

I tried

https://nominatim.openstreetmap.org/lookup?osm_ids=R1382494&format=json

but don't see the alternate names info I am after in the response.

asked 17 Dec '18, 12:34

jeremy%20rutman's gravatar image

jeremy rutman
11113
accept rate: 0%

edited 17 Dec '18, 17:21


One Answer:

1

You can add namedetails=1 to your search query to get the full list of available names, e.g. https://nominatim.openstreetmap.org/lookup?osm_ids=R1382494&format=json&namedetails=1.

For a full description of the lookup API, see the documentation on nominatim.org.

answered 22 Dec '18, 13:21

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

Source code available on GitHub .