Improved www.ttss.krakow.pl
Jacek Kowalski
2017-04-25 9dd3d1773db1ec93be79485b85d533fe688e5094
Fix tram route not displayed due to wrong URL
2 files modified
3 ■■■■ changed files
map.js 2 ●●● patch | view | raw | blame | history
proxy.php 1 ●●●● patch | view | raw | blame | history
map.js
@@ -293,7 +293,7 @@
        if(!vehicleId) return;
           
        feature_xhr = $.get(
            ttss_base + '/internetservice/geoserviceDispatcher/services/pathinfo/vehicle'
            ttss_base + '/geoserviceDispatcher/services/pathinfo/vehicle'
                + '?id=' + encodeURIComponent(vehicleId)
        ).done(function(data) {
            if(!data || !data.paths || !data.paths[0] || !data.paths[0].wayPoints) return;
proxy.php
@@ -73,6 +73,7 @@
    '/lookup/autocomplete/json' => '/services/lookup/autocomplete/json',
    '/passageInfo/stopPassages/stop' => '/services/passageInfo/stopPassages/stop',
    '/routeInfo/routeStops' => '/services/routeInfo/routeStops',
    '/internetservice/geoserviceDispatcher/services/pathinfo/vehicle' => '/geoserviceDispatcher/services/pathinfo/vehicle',
];
$path = $_SERVER['PATH_INFO'];