[OSM-talk] Errors on the API
Etienne
80n80n at gmail.com
Wed Jun 7 22:56:43 BST 2006
Am I the only person who gets *****NO RESPONSE****** when requesting
data from the API? This happens 90% of the time. I rarely get a 400
or 500 response.
This happens even with really really tiny areas.
I had this problem for a very long time now and the server upgrades
didn't seem to alleviate it much (if at all).
I've not seen many complaints here about the server just not returning
a response so I'm wondering if there is some issue with my own
network. Does anyone else ever get NO RESPONSE from the API?
Etienne
On 6/7/06, Gabriel Ebner <ge at gabrielebner.at> wrote:
> On Wed, Jun 07, 2006 at 10:27:49PM +0200, Dan Karran wrote:
> > >I seem generally to be ok with smaller area calls. These don't get 400's.
> > >Tho I still get some 500's even then.
> >
> > Ah yes, I am able to get little villages now. I'd tried smaller areas
> > than normal, but hadn't tried such a small area as I'm working with
> > now.
>
> After reading the source, it looks like the server responds with 400 if the
> requested area is bigger than 0.014 square degrees: map.rb, line 24-25:
>
> if bllat > trlat || bllon > trlon || ( (trlon - bllon) * (trlat - bllat) ) > (0.0035 * 4)
> exit BAD_REQUEST
>
> The area condition is actually commented in svn, but I believe it got
> reenabled in order to reduce server load.
>
> Gabriel.
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
>
>
>
More information about the talk
mailing list