From dc134f38973cf692b6819d51313d8b11951c58a1 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 12 Jun 2024 17:34:41 +0300 Subject: [PATCH 1/1] Show u-turn icons for GraphHopper u-turn instructions --- app/assets/javascripts/index/directions/graphhopper.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/index/directions/graphhopper.js b/app/assets/javascripts/index/directions/graphhopper.js index 7dfe4730b..e72f6d75f 100644 --- a/app/assets/javascripts/index/directions/graphhopper.js +++ b/app/assets/javascripts/index/directions/graphhopper.js @@ -11,7 +11,10 @@ function GraphHopperEngine(id, vehicleType) { "5": 14, // via reached "6": 10, // roundabout "-7": 19, // keep left - "7": 18 // keep right + "7": 18, // keep right + "-98": 4, // unknown direction u-turn + "-8": 4, // left u-turn + "8": 4 // right u-turn }; return { -- 2.39.5