]> git.openstreetmap.org Git - rails.git/commitdiff
Show u-turn icons for GraphHopper u-turn instructions
authorAnton Khorev <tony29@yandex.ru>
Wed, 12 Jun 2024 14:34:41 +0000 (17:34 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 12 Jun 2024 14:34:41 +0000 (17:34 +0300)
app/assets/javascripts/index/directions/graphhopper.js

index 7dfe4730bf98cd92de4a23b658724a3f6f868611..e72f6d75f32528682ca816bbcc90003fa5e28c31 100644 (file)
@@ -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 {