Skip to content

Read leg mode from trip, instead of route - #3819

Merged
hannesj merged 1 commit into
opentripplanner:dev-2.xfrom
entur:otp2_leg_mode
Jan 18, 2022
Merged

Read leg mode from trip, instead of route#3819
hannesj merged 1 commit into
opentripplanner:dev-2.xfrom
entur:otp2_leg_mode

Conversation

@hannesj

@hannesj hannesj commented Jan 17, 2022

Copy link
Copy Markdown
Contributor

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 Apply to issues describing a bug and PRs witch fixes it. 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

!Bug Apply to issues describing a bug and PRs witch fixes it.

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