Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read leg mode from trip, instead of route #3819

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

hannesj
Copy link
Contributor

@hannesj hannesj commented Jan 17, 2022

Summary

Change the Leg mapper, so that the mode is read from the Trip, instead of the Route. The mode getter in trip will fallback to the route, if it is not overridden.

Issue

Fixes #3818

Unit tests

Not changed

Code style

Documentation

None required

Changelog

The changelog file
is generated from the pull-request title, make sure the title describe the feature or issue fixed.
To exclude the PR from the changelog add [changelog skip] in the title.

@hannesj hannesj added the Bug label Jan 17, 2022
@hannesj hannesj added this to the 2.1 milestone Jan 17, 2022
@hannesj hannesj requested a review from a team as a code owner January 17, 2022 22:20
@hannesj hannesj merged commit 2188c98 into opentripplanner:dev-2.x Jan 18, 2022
@hannesj hannesj deleted the otp2_leg_mode branch January 18, 2022 09:54
t2gran pushed a commit that referenced this pull request Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The mode for a leg is not returned correctly when a trip overrides the route mode
3 participants