From 72a4f68a26f1bba1d3a4f39803f89db61a99c64c Mon Sep 17 00:00:00 2001 From: Scott Feeney Date: Sun, 5 Jan 2025 02:52:38 -0800 Subject: [PATCH] Fix 'use_ferries: true' A bug in PR #85 did not actually initialize the useFerries value, so it defaulted to false, regardless of the config setting. --- .../java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java b/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java index ca1649c653e..f177db2664d 100644 --- a/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java +++ b/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java @@ -73,6 +73,7 @@ abstract public class BikeCommonFlagEncoder extends AbstractFlagEncoder { protected BikeCommonFlagEncoder(String name, int speedBits, double speedFactor, int maxTurnCosts, boolean speedTwoDirections, boolean useFerries) { super(name, speedBits, speedFactor, speedTwoDirections, maxTurnCosts); + this.useFerries = useFerries; penaltyEnc = new DecimalEncodedValueImpl(getKey(name, "penalty"), 4, PenaltyCode.getFactor(1), penaltyTwoDirections);