-
Hi everyone. I have been using Nominatim for a while and would like to deploy it on my own server. I wonder if there's code that controls search scope? I think default is to search globally, but ideally when I deploy the tool, I'd like change it a bit so that I can search within a bounding box only when coordinate parameters are provided. Any help is appreciated! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You can use the For example searching for all "Paris" in the eastern United States https://nominatim.openstreetmap.org/search.php?q=paris&viewbox=-79.81533%2C44.66899%2C-67.15908%2C36.73927&bounded=1&format=jsonv2
You can also import only a country or region of the world https://nominatim.org/release-docs/latest/admin/Import/#choosing-the-data-to-import |
Beta Was this translation helpful? Give feedback.
You can use the
viewbox
andbounded=1
search filters. https://nominatim.org/release-docs/latest/api/Search/#result-limitationFor example searching for all "Paris" in the eastern United States https://nominatim.openstreetmap.org/search.php?q=paris&viewbox=-79.81533%2C44.66899%2C-67.15908%2C36.73927&bounded=1&format=jsonv2
bounded=0
on the other hand only affects the ranking. So results 1-5 are in the United States, result 6 is Paris in France.You can also import only a country or region of the world https://nominatim.org/release-docs/latest/admin/Import/#choosing-the-data-to-import