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