X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3cfcf18a59ecc759a43d24bea8f6be6e374a83bc..3eaf58c151ca9c790dcf6d0937dc186c5c790422:/app/assets/javascripts/routing_engines/mapquest_bicycle.js?ds=sidebyside diff --git a/app/assets/javascripts/routing_engines/mapquest_bicycle.js b/app/assets/javascripts/routing_engines/mapquest_bicycle.js index f74ccba15..b08096955 100644 --- a/app/assets/javascripts/routing_engines/mapquest_bicycle.js +++ b/app/assets/javascripts/routing_engines/mapquest_bicycle.js @@ -6,7 +6,7 @@ // *** needs to give credit OSM.RoutingEngines.list.push({ - name: 'Bicycle (MapQuest Open)', + name: "javascripts.directions.engines.mapquest_bike", draggable: false, _hints: {}, MQ_SPRITE_MAP: { @@ -36,6 +36,7 @@ OSM.RoutingEngines.list.push({ url+="&from="+from.join(','); url+="&to="+to.join(','); url+="&routeType=bicycle"; + //url+="&locale=" + I18n.currentLocale(); //Doesn't actually work. MapQuest requires full locale e.g. "de_DE", but I18n only provides language, e.g. "de" url+="&manMaps=false"; url+="&shapeFormat=raw&generalize=0"; this.requestJSONP(url+"&callback=");