From 40d970d1957a4753cdaaec67ac66917af2d0969b Mon Sep 17 00:00:00 2001 From: ratrun Date: Sat, 6 Jul 2024 17:29:28 +0200 Subject: [PATCH] Add reason for not using REACH_DESTINATION --- .../graphhopper/routing/util/parsers/FootPriorityParser.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/graphhopper/routing/util/parsers/FootPriorityParser.java b/core/src/main/java/com/graphhopper/routing/util/parsers/FootPriorityParser.java index f7533109c4c..466867cf35a 100644 --- a/core/src/main/java/com/graphhopper/routing/util/parsers/FootPriorityParser.java +++ b/core/src/main/java/com/graphhopper/routing/util/parsers/FootPriorityParser.java @@ -105,6 +105,8 @@ void collect(ReaderWay way, TreeMap weightToPrioMap) { weightToPrioMap.put(100d, PREFER); if (way.hasTag("foot", "use_sidepath")) { + // We use VERY_BAD and not REACH_DESTINATION in order to avoid too long detours, see + // https://community.openstreetmap.org/t/foot-use-sidepath-sinnvoll-bei-separat-kartierten-gehwegen/115654 weightToPrioMap.put(100d, VERY_BAD); }