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:


On 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:,42.96961,-81.28329,43.01356


comment:2 Changed 3 years ago by mtmail

Fix ready in, 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 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 as well.

Note: See TracTickets for help on using tickets.