X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/783b5e3729228908d7404ae7404af1023501a906..be878df0978d5b51f7fbb72fca16f74c5708c818:/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",