-
Notifications
You must be signed in to change notification settings - Fork 684
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 signature to re-enable transition cost for motorcycle #2837
Conversation
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.
1 minor comment. Rest looks good 👍
@@ -242,8 +241,7 @@ class MotorcycleCost : public DynamicCost { | |||
virtual Cost TransitionCostReverse(const uint32_t idx, | |||
const baldr::NodeInfo* node, | |||
const baldr::DirectedEdge* pred, | |||
const baldr::DirectedEdge* edge, | |||
const bool has_traffic) const; | |||
const baldr::DirectedEdge* edge) const override; |
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.
You can remove comment for has_traffic
from both function's doc comments.
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.
Good catch! 👍
ebbba37
@@ -10,6 +10,7 @@ | |||
* FIXED: Mark the restriction start and end as via ways to fix IsBridgingEdge function in Bidirectional Astar [#2796](https://github.com/valhalla/valhalla/pull/2796) | |||
* FIXED: Dont add predictive traffic to the tile if it's empty [#2826](https://github.com/valhalla/valhalla/pull/2826) | |||
* FIXED: Fix logic bidirectional astar to avoid double u-turns and extra detours [#2802](https://github.com/valhalla/valhalla/pull/2802) | |||
* FIXED: Re-enable transition cost for motorcycle profile [#2837](https://github.com/valhalla/valhalla/pull/2837) |
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.
s/profile/costing
😄
Issue
Method signature got inconsistent with the one of the base class. As a result, zero transition cost was applied for motorcycle profile.
Tasklist
Requirements / Relations
Link any requirements here. Other pull requests this PR is based on?