X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d8eda6ba03f757d0cd5997b788d660aad2bf2e3c..e44f856b53fcba5b44af37126579a034ef654676:/app/assets/javascripts/index/directions/osrm.js diff --git a/app/assets/javascripts/index/directions/osrm.js b/app/assets/javascripts/index/directions/osrm.js index f2276c11f..84f085c5a 100644 --- a/app/assets/javascripts/index/directions/osrm.js +++ b/app/assets/javascripts/index/directions/osrm.js @@ -119,7 +119,7 @@ function OSRMEngine() { } else if (step.maneuver.type.match(/on ramp|off ramp/)) { var params = {}; if (step.exits && step.maneuver.type.match(/off ramp/)) params.exit = step.exits; - if (step.destinations) params.directions = step.destinations; + if (step.destinations) params.directions = destinations; if (namedRoad) params.directions = name; if (Object.keys(params).length > 0) { template = template + "_with_" + Object.keys(params).join("_");