OSM.RoutingEngines.list.push({
name: "javascripts.directions.engines.graphhopper_bike",
+ creditline: 'Directions courtesy of <a href="http://graphhopper.com/routing/" target="_blank">Graphhopper</a>',
draggable: true,
_hints: {},
getRoute: function(isFinal, points) {
},
gotRoute: function(router, data) {
if (!data.info.routeFound) {
- alert("Couldn't find route between those two places");
return false;
}
// Draw polyline
steps.push([{lat: latlng[0], lng: latlng[1]}, instrCode, instrText, distInMeter]);
}
router.setItinerary({steps: steps});
+ return true;
},
GH_INSTR_MAP: {
"-3": 6, // sharp left