Make more of the javascript routing functions internationalizable
This commit is contained in:
parent
3cfcf18a59
commit
3eaf58c151
9 changed files with 94 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue