-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Update docs for process_turn
in the profile docs
#4786
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.
👍 Looks nice!
docs/profiles.md
Outdated
weight | Read/write | Float | Penalty to be applied for this turn (routing weight) | ||
duration | Read/write | Float | Penalty to be applied for this turn (duration in deciseconds) | ||
source_mode | Read/write | Enum | Travel mode before the turn. Defined in `include/extractor/travel_mode.hpp` |
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.
source_mode
and target_mode
are Read/write
properties but not used after process_turn
calls and can be Read-only
properties. I guess const
qualifiers are missing at
osrm-backend/include/extractor/extraction_turn.hpp
Lines 42 to 44 in 6d801e7
TravelMode source_mode; | |
TravelMode target_mode; | |
}; |
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.
👍
docs/profiles.md
Outdated
weight | Read/write | Float | Penalty to be applied for this turn (routing weight) | ||
duration | Read/write | Float | Penalty to be applied for this turn (duration in deciseconds) | ||
source_mode | Read/write | Enum | Travel mode before the turn. Defined in `include/extractor/travel_mode.hpp` | ||
target_mode | Read/write | Enum | Travel mode after the turn. Defined in `include/extractor/travel_mode.hpp` |
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_left_hand_driving | Read | Boolean | Is left-hand traffic? |
is missing
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.
missed this one thanks!
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.
👍
Issue
Updating incorrect docs to support #4775
The available attributes for the
process_turn
function accessible in the lua profiles were incorrect.Tasklist
CHANGELOG.md entry (How to write a changelog entry)add regression / cucumber cases (see docs/testing.md)Requirements / Relations
None