X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/423b13d5cefed2efd986ff468cf6375ef899c62a..3cfcf18a59ecc759a43d24bea8f6be6e374a83bc:/app/assets/javascripts/routing_engines/graphhopper_bicycle.js diff --git a/app/assets/javascripts/routing_engines/graphhopper_bicycle.js b/app/assets/javascripts/routing_engines/graphhopper_bicycle.js index 39c7bca59..7f7c83c80 100644 --- a/app/assets/javascripts/routing_engines/graphhopper_bicycle.js +++ b/app/assets/javascripts/routing_engines/graphhopper_bicycle.js @@ -4,13 +4,13 @@ OSM.RoutingEngines.list.push({ name: 'Bicycle (GraphHopper)', draggable: true, _hints: {}, - getRoute: function(final, points) { + getRoute: function(isFinal, points) { var url = "http://graphhopper.com/routing/api/route?vehicle=bike&locale=en"; for (var i = 0; i < points.length; i++) { var pair = points[i].join(','); url += "&point=" + pair; } - if (final) + if (isFinal) url += "&instructions=true"; this.requestJSONP(url + "&type=jsonp&callback="); },