diff --git a/Docs/WebFrontend/Route.js b/Docs/WebFrontend/Route.js index 71acde7eb..804af32c7 100644 --- a/Docs/WebFrontend/Route.js +++ b/Docs/WebFrontend/Route.js @@ -29,7 +29,8 @@ //====================== // OBJECTS //Map -var HOST_ROUTING_URL = 'http://routingdemo.geofabrik.de/route-via/'; +var HOST_ROUTING_URL = 'http://141.3.24.68:5000/viaroute'; +//var HOST_ROUTING_URL = 'http://routingdemo.geofabrik.de/route-via/'; var HOST_WEBSITE = 'http://map.project-osrm.org/';//location.host var ISCALCULATING = false; @@ -78,7 +79,7 @@ function routing(isDragRoute){ document.getElementById('information').innerHTML = '

Release mouse button to get Route Information!

(If no Route Summary is diplayed, press the Route!-button)'; } - script.src = HOST_ROUTING_URL + "&start="+from.lat + ',' + from.lon + '&dest=' + to.lat + ',' + to.lon; + script.src = HOST_ROUTING_URL + "?start="+from.lat + ',' + from.lon + '&dest=' + to.lat + ',' + to.lon; for(var i = 0; i < viaPointsVector.length; i++) { script.src += ('&via=' + viaPointsVector[i][0] + ',' + viaPointsVector[i][1]); } diff --git a/Server/RequestHandler.h b/Server/RequestHandler.h index 77635ccdf..0a85d38cd 100644 --- a/Server/RequestHandler.h +++ b/Server/RequestHandler.h @@ -53,9 +53,9 @@ public: std::string request(req.uri); // INFO( "[r] " << request ); std::string command; - std::size_t firstAmpPosition = request.find_first_of("&"); + std::size_t firstAmpPosition = request.find_first_of("?"); command = request.substr(1,firstAmpPosition-1); -// DEBUG("[debug] looking for handler for command: " << command); + DEBUG("[debug] looking for handler for command: " << command); try { if(pluginMap.Holds(command)) {