[pgrouting-users] Where to get the data for the Workshop?

Daniel Kastl daniel at georepublic.de
Thu Mar 28 08:43:45 PDT 2013


On Fri, Mar 29, 2013 at 12:14 AM, Luís de Sousa
<luis.a.de.sousa at gmail.com>wrote:

> Hello everyone,
>
> I'm just starting with pgRouting, following the workshop tutorial
> available on line. I've installed all the required packages and
> created the databases successfully, but unfortunately I'm not able to
> get the data. Here's the result using the command in the workshop
> pages:
>
> $ wget --progress=dot:mega -O "sampledata.osm"
> "
> http://jxapi.openstreetmap.org/xapi/api/0.6/*[bbox=-105.2147,39.5506,-104.594,39.9139]
> "
> Warning: wildcards not supported in HTTP.
> --2013-03-28 15:37:59--
>
> http://jxapi.openstreetmap.org/xapi/api/0.6/*[bbox=-105.2147,39.5506,-104.594,39.9139]
> Resolving jxapi.openstreetmap.org (jxapi.openstreetmap.org)...
> 128.40.168.100
> Connecting to jxapi.openstreetmap.org
> (jxapi.openstreetmap.org)|128.40.168.100|:80... connected.
> HTTP request sent, awaiting response... 502 Proxy Error
> 2013-03-28 15:52:59 ERROR 502: Proxy Error.
>
> In face of this I went to the OSM wiki to check if this address was
> correct. I thus tried it the way they suggest there:
>
> $ wget --progress=dot:mega -O "sampledata.osm"
> "
> http://api.openstreetmap.org/api/0.6/map?bbox=-105.2147,39.5506,-104.594,39.9139
> "
> --2013-03-28 15:55:01--
>
> http://api.openstreetmap.org/api/0.6/map?bbox=-105.2147,39.5506,-104.594,39.9139
> Resolving api.openstreetmap.org (api.openstreetmap.org)...
> 193.63.75.99, 193.63.75.100, 193.63.75.103, ...
> Connecting to api.openstreetmap.org
> (api.openstreetmap.org)|193.63.75.99|:80... connected.
> HTTP request sent, awaiting response... 400 Bad Request
> 2013-03-28 15:55:01 ERROR 400: Bad Request.
>
> Still no luck, so I tried with JOSM, as suggested in the workshop
> page. Using the same bounding box I get this error:
>
> The OSM server 'http://api.openstreetmap.org/api/0.6/' reported a bad
> request.
> The area you tried to download is too big or your request was too large.
> Either request a smaller area or use an export file provided by the
> OSM community
>
> Apparently the API is not digesting well this bounding box. Is there
> any other way I could get the data to follow on with the Workshop?
>


Eventually the API has changed (the current workshop was mainly written for
FOSS4G 2011).

There are various ways though to download OSM data, ie:
http://download.geofabrik.de/
http://download.bbbike.org/osm/
http://developer.mapquest.com/web/products/open/xapi

So I'm not sure the current API error is temporary. Could be that the XAPI
is not available anymore:
http://wiki.openstreetmap.org/wiki/Xapi

If you find a working solution I'm glad to update the workshop.

Daniel











>
> Thank you,
>
> Luís
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users
>



-- 
Georepublic UG & Georepublic Japan
eMail: daniel.kastl at georepublic.de
Web: http://georepublic.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20130329/f3e023f8/attachment.html>


More information about the Pgrouting-users mailing list