From: Simon Poole Date: Wed, 8 Jul 2020 14:04:11 +0000 (+0200) Subject: Tuen on turn restriction support for graphhopper X-Git-Tag: live~2103^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/85cb71702e663d0588e6e4db86f10cec0eeaf993 Tuen on turn restriction support for graphhopper No way of actually testing if this works, but it is based on https://docs.graphhopper.com/#operation/getRoute/parameters/point and https://www.graphhopper.com/blog/2020/07/08/turn-restriction-support-for-graphhoppers-directions-api/ --- diff --git a/app/assets/javascripts/index/directions/graphhopper.js b/app/assets/javascripts/index/directions/graphhopper.js index 6bd430c06..0a593f59b 100644 --- a/app/assets/javascripts/index/directions/graphhopper.js +++ b/app/assets/javascripts/index/directions/graphhopper.js @@ -29,6 +29,7 @@ function GraphHopperEngine(id, vehicleType) { "ch.disable": vehicleType === "car", "elevation": false, "instructions": true, + "turn_costs": true, "point": points.map(function (p) { return p.lat + "," + p.lng; }) }, traditional: true,