1 // CloudMade foot engine
2 // *** again, this should be shared from a Cloudmade library somewhere
3 // *** this API key is taken from some example code, not for real live use!
4 // http://cloudmade.com/documentation/routing
6 OSM.RoutingEngines.list.push({
7 name: 'Foot (CloudMade)',
9 getRoute: function(final,points) {
10 var url="http://routes.cloudmade.com/8ee2a50541944fb9bcedded5165f09d9/api/0.3/";
12 for (var i=0; i<points.length; i++) {
18 this.requestJSONP(url+"?callback=");
20 gotRoute: function(router,data) {
23 // *** will require some degree of refactoring because instruction text is pre-assembled
24 // *** otherwise largely like OSRM (funny that)