]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/routing_engines/mapquest_bicycle.js
Apparently 'final' is a reserved word in JS...
[rails.git] / app / assets / javascripts / routing_engines / mapquest_bicycle.js
index 2f7642de9e72bf625283e79712f26bc95d522d9a..f74ccba151951c9032b5be80ea9c4dd7a8daec60 100644 (file)
@@ -30,7 +30,7 @@ OSM.RoutingEngines.list.push({
                17: 8, // left fork
                18: 1  // straight fork
        },
-       getRoute: function(final,points) {
+       getRoute: function(isFinal,points) {
                var url="http://open.mapquestapi.com/directions/v2/route?key=Fmjtd%7Cluur290anu%2Crl%3Do5-908a0y";
                var from=points[0]; var to=points[points.length-1];
                url+="&from="+from.join(',');