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

URL encoded bbox on map request returns 400 #2753

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

URL encoded bbox on map request returns 400 #2753

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

Comments

@openstreetmap-trac
Copy link

Reporter: randomjunk
[Submitted to the original trac issue database at 9.38am, Sunday, 28th February 2010]

The following request fails with a 400 error:

http://www.openstreetmap.org/api/0.6/map?bbox=%2D0%2E2170933135223389%2C51%2E45540556218887%2C%2D0%2E20904668647766114%2C51%2E45859438211779

The parameter bbox is required, and must be of the form min_lon,min_lat,max_lon,max_lat.

It works fine if you decode the bbox param first. This only happens on the main API server -- the dev test APIs work correctly.

Unfortunately Adobe have apparently decided to use application/x-www-form-urlencoded for even GET parameters.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 12.03am, Monday, 1st March 2010]

I guess this is a cgimap issue...

@openstreetmap-trac
Copy link
Author

Author: Matt
[Added to the original trac issue at 9.21pm, Sunday, 25th April 2010]

Fixed in r20982.

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