Opened 3 years ago

Closed 3 years ago

#5422 closed defect (fixed)

Wong order of coordinates in viewbox parameter of URL request

Reported by: David_01 Owned by: geocoding@…
Priority: major Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

On https://nominatim.openstreetmap.org/ if "apply viewbox" is checked, URL request is issued with viewbox=<bottom>,<left>,<top>,<right> while expected order is <left>,<top>,<right>,<bottom>. This options anyway seems to have no effect without the bounded=1 parameter. Adding bounded=1 and reordering the coordinates in URL request produces the expected result.

Change History (4)

comment:1 Changed 3 years ago by Sarah Hoffmann

I can confirm the bad ordering. @mtmail?

The viewbox parameter, when correctly ordered, works fine though. Compare:

http://nominatim.openstreetmap.org/search.php?q=london&polygon=1&viewbox=-81.19806,42.96961,-81.28329,43.01356

vs.

http://nominatim.openstreetmap.org/search.php?q=london

comment:2 Changed 3 years ago by mtmail

Fix ready in https://github.com/twain47/Nominatim/pull/527, not live in production yet.

Thanks for reporting David_01!

@lonvia: you're right. When the viewbox parameter gets set via a URL then it is applied correctly. The trouble was that after map interaction it got set wrong on any subsequent requests. Quite confusing.

comment:3 Changed 3 years ago by Sarah Hoffmann

Fix is merged but not yet live on osm.org. The code is currently quite a bit behind and the change cannot be easily merged. We'll move to the new version in the next few weeks and then the fix will go live.

comment:4 Changed 3 years ago by Sarah Hoffmann

Resolution: fixed
Status: newclosed

The code has been merged in the meantime and the issue should be fixed on osm.org as well.

Note: See TracTickets for help on using tickets.