-
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
Fix rental scooter access #5361
Fix rental scooter access #5361
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5361 +/- ##
=============================================
+ Coverage 66.49% 66.51% +0.01%
- Complexity 15234 15239 +5
=============================================
Files 1785 1785
Lines 69269 69277 +8
Branches 7291 7293 +2
=============================================
+ Hits 46063 46079 +16
+ Misses 20737 20729 -8
Partials 2469 2469
☔ View full report in Codecov by Sentry. |
A small request, not directly related to this PR, but useful for getting into the logic: could you add some javadoc in the AStarEdge interface. In particular the meaning of the traverse() method is not obvious and a short high-level description would help, as well as few words about the meaning of the return value State.empty(), and the special case of returning multiple states (#4841) |
Perfect, thank you! |
This also fixes the issue I mentioned earlier where direct routing to a station would not return a scooter rental leg:
while using coordinates would succeeds:
Now both queries return similar results. |
/** | ||
* Traverse the edge from a given state and return the result of the traversal. | ||
* | ||
* @param u The 'current' state when arriving at the fromVertex. |
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.
Is u
again some term from A* literature or java naming convention? Could we have a more descriptive name for this variable even if this is just an interface?
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'm not sure. There must be a reason why Hannes called it u
. In other places it's called s0
.
The A* Wikipedia page mentions neither u
nor s0
.
Would s0
be a good name for you?
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.
Yes that's fine
Summary
This fixes the scooter rental access computation when geofencing zones are deactivated. The problem was that the
StreetTransitStopLink
edge didn't allow rental scooters to traverse.Issue
Closes #5356
Unit tests
Lots of test cases added.