X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/565f661f20ad0caca2b91cba4d036ff65ee6e9ec..3ddda7319c5e9f146a03ab86f1de8e32d9bae3ef:/app/assets/javascripts/routing_engines/graphhopper_bicycle.js diff --git a/app/assets/javascripts/routing_engines/graphhopper_bicycle.js b/app/assets/javascripts/routing_engines/graphhopper_bicycle.js index bec855f88..acf089278 100644 --- a/app/assets/javascripts/routing_engines/graphhopper_bicycle.js +++ b/app/assets/javascripts/routing_engines/graphhopper_bicycle.js @@ -17,7 +17,6 @@ OSM.RoutingEngines.list.push({ }, gotRoute: function(router, data) { if (!data.info.routeFound) { - alert("Couldn't find route between those two places"); return false; } // Draw polyline @@ -36,6 +35,7 @@ OSM.RoutingEngines.list.push({ steps.push([{lat: latlng[0], lng: latlng[1]}, instrCode, instrText, distInMeter]); } router.setItinerary({steps: steps}); + return true; }, GH_INSTR_MAP: { "-3": 6, // sharp left