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: otbutz <[email protected]>
  • Loading branch information
ratrun and otbutz committed Aug 23, 2024
1 parent 3841979 commit 3b83d95
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ else if (way.hasTag("bicycle", "yes"))
speed = PUSHING_SECTION_SPEED; // unknown surface
} else if (way.hasTag("service")) {
speed = highwaySpeeds.get("living_street");
} else if ("track".equals(highwayValue) ||
"bridleway".equals(highwayValue) ) {
} else if ("bridleway".equals(highwayValue) && surfaceSpeed != null ) {
speed = surfaceSpeed;
} else if ("track".equals(highwayValue) {
if (surfaceSpeed != null)
speed = surfaceSpeed;
else if (trackTypeSpeeds.containsKey(trackTypeValue))
Expand Down

0 comments on commit 3b83d95

Please sign in to comment.