X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e54eadea95296a68044bd3f2b092b978a808f1b7..3932c6b7f28223819fb71920b2458fc1180cba82:/app/assets/javascripts/index/directions/mapzen.js diff --git a/app/assets/javascripts/index/directions/mapzen.js b/app/assets/javascripts/index/directions/mapzen.js index 3c2aaff8c..73643ba46 100644 --- a/app/assets/javascripts/index/directions/mapzen.js +++ b/app/assets/javascripts/index/directions/mapzen.js @@ -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; ]; @@ -87,12 +87,15 @@ function MapzenEngine(id, costing) { callback(false, { line: line, steps: steps, - distance: distance, + distance: distance * 1000, time: time }); } else { callback(true); } + }, + error: function () { + callback(true); } }); }