]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/mapzen.js
Fix issues with bogus % encoded sequences in URLs
[rails.git] / app / assets / javascripts / index / directions / mapzen.js
index 915e665f5d5e6acfbbfcd4960bf71fa235db16c7..73643ba465faa613da1426b50bbd85df0bc57967 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;
   ];
 
@@ -93,6 +93,9 @@ function MapzenEngine(id, costing) {
           } else {
             callback(true);
           }
+        },
+        error: function () {
+          callback(true);
         }
       });
     }