diff --git a/WebContent/routing/OSRM.RoutingAlternatives.js b/WebContent/routing/OSRM.RoutingAlternatives.js index 6de958cfb..42234f071 100644 --- a/WebContent/routing/OSRM.RoutingAlternatives.js +++ b/WebContent/routing/OSRM.RoutingAlternatives.js @@ -37,8 +37,8 @@ init: function() { prepare: function(response) { // move best route to alternative array var the_response = OSRM.G.response; - the_response.route_name = ["Temporary Value"]; - the_response.alternative_names = [ ["Temporary Value2"] ]; + the_response.route_name = the_response.route_name || []; + the_response.alternative_names = the_response.alternative_names || [ [] ]; the_response.alternative_geometries.unshift( response.route_geometry ); the_response.alternative_instructions.unshift( response.route_instructions ); the_response.alternative_summaries.unshift( response.route_summary );