]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/mapzen.js
Revert "Don't pass the locale to the Mapzen routing engine"
[rails.git] / app / assets / javascripts / index / directions / mapzen.js
index 02f0f418816f3689eb00b81873d9925cb6ca82f7..348cb99c99c58367b7611f3b4b318ec5c02f5afe 100644 (file)
@@ -28,7 +28,7 @@ function MapzenEngine(id, costing) {
     1,  // kMerge = 25;
     11, // kRoundaboutEnter = 26;
     12, // kRoundaboutExit = 27;
-    1 // kFerryEnter = 28;
+    18, // kFerryEnter = 28;
     1   // kFerryExit = 29;
   ];
 
@@ -39,7 +39,7 @@ 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({