X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=application%2Fresources%2Fstations%2Fdownloaddata.sh;h=8a7e3569cfc7d5f122c3d5977ecd6b2b7d8e1698;hb=79fbc08429d6d34853fbc82d713d12f3b1d6e5ff;hp=65b976340d33b1d58430334595d638ace1620326;hpb=e6a03bb794da1de27c140e95b56869a2cbcfe83a;p=quandoparte diff --git a/application/resources/stations/downloaddata.sh b/application/resources/stations/downloaddata.sh old mode 100644 new mode 100755 index 65b9763..8a7e356 --- a/application/resources/stations/downloaddata.sh +++ b/application/resources/stations/downloaddata.sh @@ -1,10 +1,36 @@ #! /bin/sh -curl --location --globoff "http://jxapi.openstreetmap.org/xapi/api/0.6/node[railway=station][bbox=6.7,44,10,46]" -o nordovest.osm & -curl --location --globoff "http://jxapi.openstreetmap.org/xapi/api/0.6/node[railway=station][bbox=10,44,14,46]" -o nordest.osm & -curl --location --globoff "http://jxapi.openstreetmap.org/xapi/api/0.6/node[railway=station][bbox=7.5,43.5,8.5,44]" -o liguria.osm & -curl --location --globoff "http://jxapi.openstreetmap.org/xapi/api/0.6/node[railway=station][bbox=10,42,15,44]" -o centronord.osm & -curl --location --globoff "http://jxapi.openstreetmap.org/xapi/api/0.6/node[railway=station][bbox=12,40,17,42]" -o centrosud.osm & -curl --location --globoff "http://jxapi.openstreetmap.org/xapi/api/0.6/node[railway=station][bbox=12.3,38,17.3,40]" -o sud.osm & -curl --location --globoff "http://jxapi.openstreetmap.org/xapi/api/0.6/node[railway=station][bbox=12,36.5,16.5,38]" -o sicilia.osm & -curl --location --globoff "http://jxapi.openstreetmap.org/xapi/api/0.6/node[railway=station][bbox=17.3,39.5,19,41]" -o puglia.osm & -curl --location --globoff "http://jxapi.openstreetmap.org/xapi/api/0.6/node[railway=station][bbox=8,38.7,10,41.3]" -o sardegna.osm +BASEURL=http://jxapi.openstreetmap.org/xapi/api/0.6 +#BASEURL=http://open.mapquestapi.com/xapi/api/0.6 + +curl --location --globoff "$BASEURL/node[railway=station][bbox=8,46,14,47]" -o nord.osm +curl --location --globoff "$BASEURL/node[railway=station][bbox=6.7,44,10,46]" -o nordovest.osm +curl --location --globoff "$BASEURL/node[railway=station][bbox=10,44,14,46]" -o nordest.osm +curl --location --globoff "$BASEURL/node[railway=station][bbox=7.5,43.5,8.5,44]" -o liguria.osm +curl --location --globoff "$BASEURL/node[railway=station][bbox=10,42,15,44]" -o centronord.osm +curl --location --globoff "$BASEURL/node[railway=station][bbox=12,40,17,42]" -o centrosud.osm +curl --location --globoff "$BASEURL/node[railway=station][bbox=12.3,38,17.3,40]" -o sud.osm +curl --location --globoff "$BASEURL/node[railway=station][bbox=12,36.5,16.5,38]" -o sicilia.osm +curl --location --globoff "$BASEURL/node[railway=station][bbox=17.3,39.5,19,41]" -o puglia.osm +curl --location --globoff "$BASEURL/node[railway=station][bbox=8,38.7,10,41.3]" -o sardegna.osm + +curl --location --globoff "$BASEURL/node[railway=halt][bbox=8,46,14,47]" -o h-nord.osm +curl --location --globoff "$BASEURL/node[railway=halt][bbox=6.7,44,10,46]" -o h-nordovest.osm +curl --location --globoff "$BASEURL/node[railway=halt][bbox=10,44,14,46]" -o h-nordest.osm +curl --location --globoff "$BASEURL/node[railway=halt][bbox=7.5,43.5,8.5,44]" -o h-liguria.osm +curl --location --globoff "$BASEURL/node[railway=halt][bbox=10,42,15,44]" -o h-centronord.osm +curl --location --globoff "$BASEURL/node[railway=halt][bbox=12,40,17,42]" -o h-centrosud.osm +curl --location --globoff "$BASEURL/node[railway=halt][bbox=12.3,38,17.3,40]" -o h-sud.osm +curl --location --globoff "$BASEURL/node[railway=halt][bbox=12,36.5,16.5,38]" -o h-sicilia.osm +curl --location --globoff "$BASEURL/node[railway=halt][bbox=17.3,39.5,19,41]" -o h-puglia.osm +curl --location --globoff "$BASEURL/node[railway=halt][bbox=8,38.7,10,41.3]" -o h-sardegna.osm + +curl --location --globoff "$BASEURL/way[railway=station][bbox=8,46,14,47]" -o w-nord.osm +curl --location --globoff "$BASEURL/way[railway=station][bbox=6.7,44,10,46]" -o w-nordovest.osm +curl --location --globoff "$BASEURL/way[railway=station][bbox=10,44,14,46]" -o w-nordest.osm +curl --location --globoff "$BASEURL/way[railway=station][bbox=7.5,43.5,8.5,44]" -o w-liguria.osm +curl --location --globoff "$BASEURL/way[railway=station][bbox=10,42,15,44]" -o w-centronord.osm +curl --location --globoff "$BASEURL/way[railway=station][bbox=12,40,17,42]" -o w-centrosud.osm +curl --location --globoff "$BASEURL/way[railway=station][bbox=12.3,38,17.3,40]" -o w-sud.osm +curl --location --globoff "$BASEURL/way[railway=station][bbox=12,36.5,16.5,38]" -o w-sicilia.osm +curl --location --globoff "$BASEURL/way[railway=station][bbox=17.3,39.5,19,41]" -o w-puglia.osm +curl --location --globoff "$BASEURL/way[railway=station][bbox=8,38.7,10,41.3]" -o w-sardegna.osm