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

Municipality not found with Nominatim search

0

Hello everyone, How can I find municipalities using nominatim search? I have my working software but I cannot find this information, that is the most important in this project.

I can explain it better with an example: using "https://nominatim.openstreetmap.org/search.php?format=geojson&countrycodes=it&addressdetails=1&namedetails=1&bounded=0&limit=10&dedupe=1&q=San+Potito+RA" I'm able to find a village, that is under the municipality of "Lugo". How can I automatically find Lugo with a query?

Thanks in advance

asked 28 Jul '19, 16:09

Filippo's gravatar image

Filippo
11112
accept rate: 0%


2 Answers:

1

I replaced "San Potito" with Lugo in your query and got an answer. Did you try that? Or was the result not what you expected?

answered 30 Jul '19, 04:15

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

0

Thank you for your reply, escada.

I do not need to find "San Potito" or "Lugo", I need to find their relation because San Potito is under the municipality of Lugo. Here it is the search using Nominatim.

As you can see, it doesn't explicity show more than "County", that is a useless data in Italy. If you look better, you can see "relation 43140" written in light grey. I need this data, but it isn't shown in the output format I need, such as JSON, GEOCODEJSON or GEOJSON.

answered 30 Jul '19, 06:26

Filippo's gravatar image

Filippo
11112
accept rate: 0%

edited 30 Jul '19, 06:27