// CloudMade foot engine
// *** again, this should be shared from a Cloudmade library somewhere
// *** this API key is taken from some example code, not for real live use!
+// http://cloudmade.com/documentation/routing
OSM.RoutingEngines.list.push({
name: 'Foot (CloudMade)',
url+="/foot.js";
this.requestJSONP(url+"?callback=");
},
- gotRoute: function(data) {
+ gotRoute: function(router,data) {
console.log(data);
// *** todo
// *** will require some degree of refactoring because instruction text is pre-assembled