Opened 9 years ago

Closed 10 months ago

#2510 closed enhancement (fixed)

Order of coordinates for viewbox parameter

Reported by: Xoff Owned by: openstreetmap@…
Priority: minor Milestone:
Component: nominatim Version:
Keywords: Cc:


It would be nice if the order of the coordinates for the viewbox parameter could be changed to left,bottom,right,top. This would allow to use e.g. Openlayers' toBBOX() function to conveniently create the value for the viewbox parameter. It would also make nominatim using the same convention as Xapi and the OSM-Api (see

Change History (3)

comment:1 Changed 9 years ago by twain

  • Resolution set to fixed
  • Status changed from new to closed

I've added an extra param, viewboxlbrt, which will accept the points in that order although I've not tested it properly yet.

comment:2 Changed 2 years ago by Harry Wood

  • Resolution fixed deleted
  • Status changed from closed to reopened

I was just noticing this 'viewboxlbrt' parameter on the wiki parameter docs, but the fun thing is... both viewbox and viewboxlbrt parameters accept the top and bottom either way round!

All of the following work ok:

Likewise left and right can happily be swapped around.

Twain added viewboxlbrt parameter 6 years ago. I imagine maybe it became min/max agnostic in recent times. Is it a bug? not really.'s a good thing!

But it seems to mean that the 'viewboxlbrt' parameter could be quietly dropped from the docs (deprecated) It seems to be pointless.

Last edited 2 years ago by Harry Wood (previous) (diff)

comment:3 Changed 10 months ago by lonvia

  • Resolution set to fixed
  • Status changed from reopened to closed

The way it works now, any two opposite points in the viewbox will do. I've changed the documentation but the viewboxlbrt parameter will continued to be accepted.

Note: See TracTickets for help on using tickets.