Updated station list (up to 715 stations)
[quandoparte] / application / resources / stations / downloaddata.sh
old mode 100644 (file)
new mode 100755 (executable)
index b1a0c9b..8a7e356
@@ -1,8 +1,36 @@
 #! /bin/sh
-curl --location --globoff "http://jxapi.openstreetmap.org/xapi/api/0.6/node[railway=station][bbox=7.6,44,12.6,46]" -o nord.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