Jacek Kowalski
2019-06-20 96b13b168db72ac01585954418ab01903fe4d42e
Use both VehiclePositions.pb and VehiclePositions_T.pb
1 files modified
9 ■■■■■ changed files
parse.php 9 ●●●●● patch | view | raw | blame | history
parse.php
@@ -24,6 +24,15 @@
        'result' => 'mapping_T.json',
        'mapper' => 'numToTypeT',
    ],
    'tram2' => [
        'gtfsrt' => 'ftp://ztp.krakow.pl/VehiclePositions.pb',
        'gtfsrt_file' => 'VehiclePositions_T.pb',
        'ttss' => 'http://www.ttss.krakow.pl/internetservice/geoserviceDispatcher/services/vehicleinfo/vehicles',
        'ttss_file' => 'vehicles_T.json',
        'database' => 'mapping_T.sqlite3',
        'result' => 'mapping_T.json',
        'mapper' => 'numToTypeT',
    ],
];
foreach($sources as $name => $source) {