]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/mapzen.js
Ensure IE/Edge compatibility for routing drag&drop
[rails.git] / app / assets / javascripts / index / directions / mapzen.js
index 73643ba465faa613da1426b50bbd85df0bc57967..1b775ba5106ffec7760c207e19261243ad719b11 100644 (file)
@@ -39,15 +39,14 @@ function MapzenEngine(id, costing) {
 
     getRoute: function (points, callback) {
       return $.ajax({
-        url: document.location.protocol + "//valhalla.mapzen.com/route",
+        url: document.location.protocol + OSM.MAPZEN_VALHALLA_URL,
         data: {
           api_key: OSM.MAPZEN_VALHALLA_KEY,
           json: JSON.stringify({
             locations: points.map(function (p) { return { lat: p.lat, lon: p.lng }; }),
             costing: costing,
             directions_options: {
-              units: "km",
-              language: I18n.currentLocale()
+              units: "km"
             }
           })
         },