From: Peter Date: Mon, 27 Jul 2020 11:04:52 +0000 (+0200) Subject: turn_costs=true only for car X-Git-Tag: live~2048^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/544450697654797e7c69710a2567d52819d210d1 turn_costs=true only for car I know there was a bit forth and back in #2695 and my last recommendation was to use turn_costs=true. This was not intended for bike and foot. --- diff --git a/app/assets/javascripts/index/directions/graphhopper.js b/app/assets/javascripts/index/directions/graphhopper.js index 829eb54a0..9a09c1009 100644 --- a/app/assets/javascripts/index/directions/graphhopper.js +++ b/app/assets/javascripts/index/directions/graphhopper.js @@ -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,