X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/783b5e3729228908d7404ae7404af1023501a906..ab4de87d1eef4546a96738154cf81b7d7f72d988:/app/assets/javascripts/index/directions/graphhopper.js?ds=inline
diff --git a/app/assets/javascripts/index/directions/graphhopper.js b/app/assets/javascripts/index/directions/graphhopper.js
index 6bd430c06..11d600316 100644
--- a/app/assets/javascripts/index/directions/graphhopper.js
+++ b/app/assets/javascripts/index/directions/graphhopper.js
@@ -14,7 +14,7 @@ function GraphHopperEngine(id, vehicleType) {
return {
id: id,
- creditline: "Graphhopper",
+ creditline: "GraphHopper",
draggable: false,
getRoute: function (points, callback) {
@@ -23,13 +23,13 @@ function GraphHopperEngine(id, vehicleType) {
return $.ajax({
url: OSM.GRAPHHOPPER_URL,
data: {
- "vehicle": vehicleType,
- "locale": I18n.currentLocale(),
- "key": "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
- "ch.disable": vehicleType === "car",
- "elevation": false,
- "instructions": true,
- "point": points.map(function (p) { return p.lat + "," + p.lng; })
+ vehicle: vehicleType,
+ locale: I18n.currentLocale(),
+ key: "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
+ elevation: false,
+ instructions: true,
+ turn_costs: vehicleType === "car",
+ point: points.map(function (p) { return p.lat + "," + p.lng; })
},
traditional: true,
dataType: "json",