Jacek Kowalski
2019-06-18 288a26c12445d7fb4f4e4d11b760744632058383
Use GTFS ID when vehicle license plate is not available
1 files modified
4 ■■■■ changed files
lib/mapper.php 4 ●●●● patch | view | raw | blame | history
lib/mapper.php
@@ -135,8 +135,8 @@
                $num = $gtfsTrip['num'];
                if(!is_array($data) || !isset($data['num'])) {
                    $data = [
                        'num' => $num ?: '',
                        'low' => 2,
                        'num' => $num ?: $gtfsTrip['id'],
                        'low' => NULL,
                    ];
                } elseif($data['num'] != $num) {
                    // Ignore due to incorrect depot markings in the data