]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/routing_engines/cloudmade_foot.js
Apparently 'final' is a reserved word in JS...
[rails.git] / app / assets / javascripts / routing_engines / cloudmade_foot.js
index 7aa147e5cf60ef711dbd2660900bdb9608cc0c8e..5193c647245067b5a51dca4f62bf476b7d6bcc57 100644 (file)
@@ -16,7 +16,7 @@ OSM.RoutingEngines.list.push({
                "TSHR": 4,
                "TU": 5
        }, // was half expecting to see TLDR in there
-       getRoute: function(final,points) {
+       getRoute: function(isFinal,points) {
                var url="http://routes.cloudmade.com/8ee2a50541944fb9bcedded5165f09d9/api/0.3/";
                var p=[];
                for (var i=0; i<points.length; i++) {