-
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
Remove default accessegress penalty for car modes that use transit #6414
base: dev-2.x
Are you sure you want to change the base?
Remove default accessegress penalty for car modes that use transit #6414
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6414 +/- ##
==========================================
Coverage 69.84% 69.84%
- Complexity 18124 18125 +1
==========================================
Files 2069 2069
Lines 77268 77269 +1
Branches 7855 7855
==========================================
+ Hits 53965 53966 +1
Misses 20546 20546
Partials 2757 2757 ☔ View full report in Codecov by Sentry. |
@@ -171,7 +171,9 @@ private static TimeAndCostPenaltyForEnum<StreetMode> createDefaultCarPenalty() { | |||
// Add penalty to all car variants with access and/or egress. |
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.
This comment should be updated.
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.
I searched for more information on this, but could not find any.
if ( | ||
it.includesDriving() && (it.accessAllowed() || it.egressAllowed()) && !it.transferAllowed() | ||
) { |
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.
if ( | |
it.includesDriving() && (it.accessAllowed() || it.egressAllowed()) && !it.transferAllowed() | |
) { | |
// Apply car-penalty to all car modes allowed in access/egress only. Exclude car modes(CAR) used | |
// in direct street routing and car modes used when you bring the car with you onto transit. This is | |
// a bit limited and will not work if we combine car access/egress modes like CAR_TO_PARK with CAR | |
// in the same search. This is currently not possible, but if we enable this in the future this logic must be | |
// looked at again. | |
if ( | |
it.includesDriving() && (it.accessAllowed() || it.egressAllowed()) && it != CAR | |
) { |
I tried, but did not find any issue discussing the issues around penalty on CAR and other street modes. |
We discussed it (very lightly) in the original PR: #6302 |
Yes I fount it, but I was almost sure there was a issue with a more in dept discussion. The PR was not very helpful, but good to reference it anyway. |
Summary
This PR removes the default accessegress penalty for car modes that use transit.
Issue
This is a follow-up PR related to issue #5875
Documentation
Automatically generated changes.