},
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;
}
});