From: Anton Khorev Date: Wed, 12 Jun 2024 14:34:41 +0000 (+0300) Subject: Show u-turn icons for GraphHopper u-turn instructions X-Git-Tag: live~459^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/dc134f38973cf692b6819d51313d8b11951c58a1?hp=2cd1b2e64a027369846a3fc271dd304ac2bfd3e6 Show u-turn icons for GraphHopper u-turn instructions --- 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 {