added routing_engine and routing_metric to describe the currently chosen
routing
This commit is contained in:
@@ -31,8 +31,9 @@ OSRM.Routing = {
|
||||
|
||||
// init routing data structures
|
||||
init: function() {
|
||||
OSRM.G.active_routing_server_id = 0;
|
||||
OSRM.G.active_routing_server_url = OSRM.DEFAULTS.HOST_ROUTING_URL[ OSRM.G.active_routing_server_id ];
|
||||
OSRM.G.active_routing_engine = 0;
|
||||
OSRM.G.active_routing_metric = 0;
|
||||
OSRM.G.active_routing_server_url = OSRM.DEFAULTS.HOST_ROUTING_URL[ OSRM.G.active_routing_engine ];
|
||||
OSRM.G.markers = new OSRM.Markers();
|
||||
OSRM.G.route = new OSRM.Route();
|
||||
OSRM.G.response = { via_points:[] };
|
||||
|
||||
@@ -31,7 +31,8 @@ onClickCreateShortcut: function(src){
|
||||
src += '&z='+ OSRM.G.map.getZoom() + '¢er=' + OSRM.G.map.getCenter().lat.toFixed(6) + ',' + OSRM.G.map.getCenter().lng.toFixed(6);
|
||||
src += '&alt='+OSRM.G.active_alternative;
|
||||
src += '&df=' + OSRM.G.DISTANCE_FORMAT;
|
||||
src += '&rs=' + OSRM.G.active_routing_server_id;
|
||||
src += '&re=' + OSRM.G.active_routing_engine;
|
||||
src += '&rm=' + OSRM.G.active_routing_metric;
|
||||
|
||||
var source = OSRM.DEFAULTS.SHORTENER_PARAMETERS.replace(/%url/, OSRM.DEFAULTS.HOST_SHORTENER_URL+src);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user