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

Nominatin search returns coordinates out of viewbox #4405

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

Nominatin search returns coordinates out of viewbox #4405

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

Comments

@openstreetmap-trac
Copy link

Reporter: maacub
[Submitted to the original trac issue database at 10.33am, Saturday, 12th May 2012]

The search returns coordinates out of area, by example:
http://nominatim.openstreetmap.org/search?format=json&osm_type=N&bounded=1&limit=100&viewbox=-5.662003755569458,43.54285569139583,-5.656328201293945,43.540312592581586&q=[restaurant]

The result: ..."lat":"43.5419773","lon":"-5.6667121","display_name":"Pulperia...
It is out of the viewbox parameters. Isn't it?

Thanks in advance!

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 6.22pm, Saturday, 12th May 2012]

This happens when no object can be found in the viewbox given. Nominatim retries the search with $sLargeViewboxSQL. It probably shouldn't be doing that when bounded=1 is given.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 2.08pm, Thursday, 1st May 2014]

Fixed in [changeset:3eb21a7/nominatim].

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