commit | author | age | ||
138f39 | 1 | #!/bin/bash -x |
JK | 2 | |
3 | DIR=`dirname "$0"` | |
4 | cd "$DIR" | |
5 | DIR=`pwd` | |
6 | ||
7 | cd "$DIR/data" | |
8 | wget -O vehicles_A.json "http://91.223.13.70/internetservice/geoserviceDispatcher/services/vehicleinfo/vehicles" | |
9 | wget -N "ftp://ztp.krakow.pl/GTFS_KRK_A.zip" "ftp://ztp.krakow.pl/VehiclePositions_A.pb" | |
10 | ||
11 | cd "$DIR" | |
12 | php parse.php > data/mapping_A.tmp | |
13 | if [ -s data/mapping_A.tmp ]; then | |
14 | mv -f data/mapping_A.tmp data/mapping_A.json | |
15 | fi |