]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/routing_engines/cloudmade_foot.js
Start MapQuest Open support
[rails.git] / app / assets / javascripts / routing_engines / cloudmade_foot.js
index 3d047f8ab766862d17b82be65a76797c2ad05738..149ceb31a3f4848584e2bcaf476260fc7aac3a26 100644 (file)
@@ -1,6 +1,7 @@
 // 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)',
@@ -16,7 +17,7 @@ OSM.RoutingEngines.list.push({
                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