X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5bd59e19368d8761a7dbaa5db0e8833174c11f36..550c4a3a45814fde5c809334c85f1ebc47659a82:/app/assets/javascripts/index/directions/graphhopper.js diff --git a/app/assets/javascripts/index/directions/graphhopper.js b/app/assets/javascripts/index/directions/graphhopper.js index 6bd430c06..9a09c1009 100644 --- a/app/assets/javascripts/index/directions/graphhopper.js +++ b/app/assets/javascripts/index/directions/graphhopper.js @@ -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",