From 544450697654797e7c69710a2567d52819d210d1 Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 27 Jul 2020 13:04:52 +0200 Subject: [PATCH] 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. --- app/assets/javascripts/index/directions/graphhopper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.43.2