Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewbox doesn't work. #452

Closed
winsento opened this issue May 18, 2016 · 2 comments
Closed

Viewbox doesn't work. #452

winsento opened this issue May 18, 2016 · 2 comments

Comments

@winsento
Copy link

Request without viewbox and with - return similar result.

Example:
http://nominatim.openstreetmap.org/search.php?q=test&polygon=1&viewbox=
http://nominatim.openstreetmap.org/search.php?q=test&polygon=1&viewbox=0,0,10,10

@lonvia
Copy link
Member

lonvia commented May 18, 2016

viewbox works fine, it just does not do what you expect. The parameter only causes search results to be ranked differently. If you want to restrict results to the viewbox region only, you need to add bounded=1. Please note that bounded searches only work for small viewboxes for efficiency reasons.

In your example, the results are the same because next to the viewbox the importance of the result is taken into account when ordering the results. The first results in Test Valley actually exist and even have a wikipedia page, which causes to be ranked with a relatively high importance that supersedes the viewbox.

@lonvia lonvia closed this as completed May 18, 2016
@galina2000
Copy link

С параметром bounded=1 результат поиска в ограничительной рамке равен 0.

2016-05-19 1:06 GMT+03:00 Sarah Hoffmann notifications@github.com:

viewbox works fine, it just does not do what you expect. The parameter
only causes search results to be ranked differently. If you want to
restrict results to the viewbox region only, you need to add bounded=1.
Please note that bounded searches only work for small viewboxes for
efficiency reasons.

In your example, the results are the same because next to the viewbox the
importance of the result is taken into account when ordering the results.
The first results in Test Valley actually exist and even have a wikipedia
page, which causes to be ranked with a relatively high importance that
supersedes the viewbox.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#452 (comment)

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

No branches or pull requests

3 participants