X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7986576b0ebe2567b494256c9cf6e88b6c9d6338..e459aa9cdd0fc6a971e93112d432c146f05df5fb:/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 829eb54a0..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) { @@ -28,7 +28,7 @@ function GraphHopperEngine(id, vehicleType) { key: "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn", elevation: false, instructions: true, - turn_costs: true, + turn_costs: vehicleType === "car", point: points.map(function (p) { return p.lat + "," + p.lng; }) }, traditional: true,