X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/149182f62009012447eadf66dd38aaa1b30090f9..04e2d35834e2531df611b8b2a31d10fc32e69443:/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 7f7c83c80..6245124b1 100644 --- a/app/assets/javascripts/routing_engines/graphhopper_bicycle.js +++ b/app/assets/javascripts/routing_engines/graphhopper_bicycle.js @@ -1,11 +1,11 @@ // GraphHopper bicycle engine OSM.RoutingEngines.list.push({ - name: 'Bicycle (GraphHopper)', + name: "javascripts.directions.engines.graphhopper_bike", draggable: true, _hints: {}, getRoute: function(isFinal, points) { - var url = "http://graphhopper.com/routing/api/route?vehicle=bike&locale=en"; + var url = "http://graphhopper.com/routing/api/route?vehicle=bike&locale=" + I18n.currentLocale(); for (var i = 0; i < points.length; i++) { var pair = points[i].join(','); url += "&point=" + pair;