Why not ask your question on the new OpenStreetMap Community Forum?

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

accept rate: 0%

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?

permanent link

answered 30 Jul '19, 04:15

escada's gravatar image

accept rate: 21%

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.

permanent link

answered 30 Jul '19, 06:26

Filippo's gravatar image

accept rate: 0%

edited 30 Jul '19, 06:27

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 28 Jul '19, 16:09

question was seen: 1,185 times

last updated: 30 Jul '19, 10:55

powered by OSQA