OSM.RoutingEngines.list.push({
name: "javascripts.directions.engines.osrm_car",
+ creditline: 'Directions courtesy of <a href="http://project-osrm.org/" target="_blank">OSRM</a>',
draggable: true,
_hints: {},
getRoute: function(isFinal,points) {
},
gotRoute: function(router,data) {
if (data.status==207) {
- alert("Couldn't find route between those two places");
return false;
}
// Draw polyline
steps.push([line[s[3]], s[0].split('-')[0], instText, s[2]]);
}
if (steps.length) router.setItinerary({ steps: steps });
+ return true;
}
});