Skip to content

Commit

Permalink
Add changes for car transfers.
Browse files Browse the repository at this point in the history
  • Loading branch information
VillePihlava committed Nov 26, 2024
1 parent 5a79a4e commit 8951c60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ public RequestModes getRequestModes() {
mBuilder.withEgressMode(StreetMode.CAR_HAILING);
mBuilder.withDirectMode(StreetMode.WALK);
} else {
mBuilder.withAccessMode(StreetMode.WALK);
mBuilder.withTransferMode(StreetMode.WALK);
mBuilder.withEgressMode(StreetMode.WALK);
// This is necessary for transfer calculations.
mBuilder.withAccessMode(StreetMode.CAR);
mBuilder.withTransferMode(StreetMode.CAR);
mBuilder.withEgressMode(StreetMode.CAR);
mBuilder.withDirectMode(StreetMode.CAR);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ else if (pathLeg.isTransferLeg()) {
legs.addAll(
mapTransferLeg(
pathLeg.asTransferLeg(),
transferMode == StreetMode.BIKE ? TraverseMode.BICYCLE : TraverseMode.WALK
StreetModeToTransferTraverseModeMapper.map(transferMode)
)
);
}
Expand Down

0 comments on commit 8951c60

Please sign in to comment.