Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Nominatim search doesn't work in bbox #4707

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

Nominatim search doesn't work in bbox #4707

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: cranik
[Submitted to the original trac issue database at 11.56am, Sunday, 2nd December 2012]

Nominatim worked well for searching the POI by type in bbox before, but now it returns the empty answer.

e.g. search for bars in Manchester:

http://nominatim.openstreetmap.org/search?q=bar&limit=20&format=json&email=info[at]galileo-app.com&bounded=1&viewbox=27.538543,53.912676,27.538651,53.912563

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 4.26pm, Tuesday, 4th December 2012]

Your example box is very small and somewhere in the middle of Minsk: http://www.openstreetmap.org/?box=yes&bbox=27.538543,53.912676,27.538651,53.912563 Are you sure you copied the right example?

@openstreetmap-trac
Copy link
Author

Author: cranik
[Added to the original trac issue at 8.00am, Wednesday, 5th December 2012]

Sorry, you are absolutely right, this is the right example below:

http://nominatim.openstreetmap.org/search?q=pub&limit=20&format=json&email=info[at]galileo-app.com&bounded=1&viewbox=-2.249724,53.468505,-2.249616,53.468409

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 9.12am, Wednesday, 5th December 2012]

Your viewbox is still tiny: http://www.openstreetmap.org/?box=yes&bbox=-2.249724,53.468505,-2.249616,53.468409 and does not contain any pubs or bars, so the empty answer is completely correct.

The behaviour of the bounded parameter got fixed lately. If bounded=1 is given, Nominatim will really only return objects within that box. Remove the bounded parameter if you want the old behaviour back.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant