On Nov 28, 2007 5:11 PM, Paul Fox <<a href="mailto:pgf@foxharp.boston.ma.us">pgf@foxharp.boston.ma.us</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi --<br><br>if i make the following request:<br> wget -O - "<a href="http://www.openstreetmap.org/api/0.5/map?bbox=-0.351563,52.031250,-0.000001,52.382812" target="_blank">http://www.openstreetmap.org/api/0.5/map?bbox=-0.351563,52.031250,-0.000001,52.382812
</a>"<br>the data comes back fine.<br><br>but this request:<br> wget -O - "<a href="http://www.openstreetmap.org/api/0.5/map?bbox=-0.351563,51.679687,-0.000001,52.031249" target="_blank">http://www.openstreetmap.org/api/0.5/map?bbox=-0.351563,51.679687,-0.000001,52.031249
</a>" | more<br>gives:<br> ERROR 400: Bad Request<br></blockquote><div><br>When you have a request that is too large for the main api you can always use osmxapi instead. It's data is usually no more that 24 hours old and is designed specifically for this situation.
<br><br>You can get the data you need like this:<br>wget <a href="http://osmxapi.informationfreeway.org/api/0.5/*[bbox=-0.351563,51.679687,-0.000001,52.031249]">http://osmxapi.informationfreeway.org/api/0.5/*[bbox=-0.351563,51.679687,-0.000001,52.031249]
</a><br><br>80n<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>now, given that these requests are large, and centered over the city
<br>of London, i'm not surprised at the failure, since i presume i've exceeded<br>the 50K node limit mentioned on the wiki:<br> <a href="http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.5#About_bounding_boxes" target="_blank">
http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.5#About_bounding_boxes</a><br><br>but i'm actually surprised that _either_ request works, since both<br>ask for over .35 degrees of lon/lat, which clearly exceeds the
0.25 listed<br>on the wiki page.<br><br>so:<br> - can anyone explain why the first request worked, given the lon/lat<br> limit?<br> - would it be possible for the "Bad Request" message to be a<br> little more informative? (
e.g. "Node limit of NN exceeded", or<br> "Area bigger than NN by NN degrees")<br><br><br>thanks,<br>paul<br>=---------------------<br> paul fox, <a href="mailto:pgf@foxharp.boston.ma.us">pgf@foxharp.boston.ma.us
</a> (arlington, ma, where it's 40.1 degrees)<br><br>_______________________________________________<br>talk mailing list<br><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk" target="_blank">
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</a><br></blockquote></div><br>