-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Improve logic for transfers in consolidated stops #6157
Improve logic for transfers in consolidated stops #6157
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6157 +/- ##
==========================================
Coverage 69.90% 69.90%
- Complexity 17709 17710 +1
==========================================
Files 1996 1996
Lines 75330 75328 -2
Branches 7715 7713 -2
==========================================
- Hits 52660 52659 -1
+ Misses 19993 19992 -1
Partials 2677 2677 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, would be nice to reuse more of the short walk leg criteria.
* Removes walk legs from and to a consolidated stop if they are deemed "short". This means that | ||
* they are from a different element of the consolidated stop. | ||
*/ | ||
private void removeWalkLegs(Itinerary itinerary) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to removeShortWalkLegs
, and maybe there is a way to consolidate the various conditions?
...on/src/ext/java/org/opentripplanner/ext/stopconsolidation/DecorateConsolidatedStopNames.java
Outdated
Show resolved
Hide resolved
This is a pure sandbox feature and I will merge it without a second reviewer. |
Summary
This improves the logic of the consolidated stops according to the latest Arcadis supplied specification: some walk legs are removed when you transfer in consolidated stops.
Unit tests
Added.
Documentation
Javadoc.