Skip to content

search within a bounding box instead of globally #2587

Answered by mtmail
xinyuluo asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the viewbox and bounded=1 search filters. https://nominatim.org/release-docs/latest/api/Search/#result-limitation

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

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

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@xinyuluo
Comment options

@mtmail
Comment options

@mtmail
Comment options

@xinyuluo
Comment options

@pawel-wroniszewski
Comment options

Answer selected by xinyuluo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants