Improved www.ttss.krakow.pl
Jacek Kowalski
2019-01-29 c38abaedc00f514396cc89338bf3e5b7e4e57017
Allow RAW positionType in proxies
2 files modified
4 ■■■■ changed files
proxy_bus.php 2 ●●● patch | view | raw | blame | history
proxy_tram.php 2 ●●● patch | view | raw | blame | history
proxy_bus.php
@@ -65,7 +65,7 @@
    ],
    '/geoserviceDispatcher/services/vehicleinfo/vehicles' => [
        'lastUpdate' => 'ctype_digit',
        'positionType' => function($type) { return in_array($type, ['CORRECTED']); },
        'positionType' => function($type) { return in_array($type, ['CORRECTED', 'RAW']); },
        'colorType' => function($type) { return in_array($type, ['ROUTE_BASED']); },
    ],
];
proxy_tram.php
@@ -65,7 +65,7 @@
    ],
    '/geoserviceDispatcher/services/vehicleinfo/vehicles' => [
        'lastUpdate' => 'ctype_digit',
        'positionType' => function($type) { return in_array($type, ['CORRECTED']); },
        'positionType' => function($type) { return in_array($type, ['CORRECTED', 'RAW']); },
        'colorType' => function($type) { return in_array($type, ['ROUTE_BASED']); },
    ],
];