Skip to content

Commit

Permalink
Update core/src/main/java/com/graphhopper/routing/util/parsers/BikeCo…
Browse files Browse the repository at this point in the history
…mmonAverageSpeedParser.java

Co-authored-by: Peter <[email protected]>
  • Loading branch information
ratrun and karussell committed Aug 29, 2024
1 parent 7865e6b commit e6475d3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@ public void handleWayTags(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way
} else if (pushingSectionsHighways.contains(highwayValue)) {
if (way.hasTag("bicycle", "designated") || way.hasTag("bicycle", "official") || way.hasTag("segregated", "yes")
|| CYCLEWAY_KEYS.stream().anyMatch(k -> way.getTag(k, "").equals("track"))) {
if (trackTypeSpeeds.containsKey(trackTypeValue))
speed = trackTypeSpeeds.get(trackTypeValue);
else
speed = highwaySpeeds.get("cycleway");
speed = trackTypeSpeeds.getOrDefault(trackTypeValue, highwaySpeeds.get("cycleway"));
}
else if (way.hasTag("bicycle", "yes"))
speed = 12;
Expand Down

0 comments on commit e6475d3

Please sign in to comment.