Skip to content

Make sure we keep the itinerary with the least number of transfers when grouping the itineraries - #3833

Merged
hannesj merged 1 commit into
opentripplanner:dev-2.xfrom
entur:otp2_keep_least_transfers
Feb 9, 2022
Merged

Make sure we keep the itinerary with the least number of transfers when grouping the itineraries#3833
hannesj merged 1 commit into
opentripplanner:dev-2.xfrom
entur:otp2_keep_least_transfers

Conversation

@hannesj

@hannesj hannesj commented Jan 27, 2022

Copy link
Copy Markdown
Contributor

Summary

We want to make sure we always keep the itinerary with the least number of transfers when doing a group by filter, as the cost is not always the most important factor when filtering relatively similar itineraries.

image

Here the direct itinerary was filtered away previously.

This is built on some commits from #3828, in order to avoid merge conflicts.

Issue

closes #3801

Unit tests

Added test for the new comparator

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 requested a review from t2gran January 27, 2022 11:37
@hannesj
hannesj requested a review from a team as a code owner January 27, 2022 11:37
@hannesj hannesj added the !Improvement A functional improvement or micro feature label Jan 27, 2022
@hannesj hannesj added this to the 2.1 milestone Jan 27, 2022
@t2gran
t2gran marked this pull request as draft January 27, 2022 14:27
@t2gran
t2gran requested a review from optionsome February 1, 2022 10:44
@hannesj
hannesj force-pushed the otp2_keep_least_transfers branch from 5457023 to 1f56dbe Compare February 4, 2022 10:49
@hannesj
hannesj marked this pull request as ready for review February 4, 2022 10:49
@t2gran t2gran added the Entur Test This is currently being tested at Entur label Feb 7, 2022
@hannesj
hannesj merged commit baa1172 into opentripplanner:dev-2.x Feb 9, 2022
@hannesj
hannesj deleted the otp2_keep_least_transfers branch February 9, 2022 17:26
t2gran pushed a commit that referenced this pull request Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Entur Test This is currently being tested at Entur !Improvement A functional improvement or micro feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minimum transfers with night train not found

3 participants