forked from valhalla/valhalla
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tyr OSRM serializer: create bannerInstructions in step (valhalla#4093)
* Tyr osrm_serializer: Create bannerInstructions in step * Tyr osrm_serializer: Make sure maneuver_type and turn_modifier isn't called twice * Adds API flag to configure usage of bannerInstructions in OSRM serializer, default is false * Tyr: Adds 'secondary' bannerInstructions * Tyr: route_serializer_osrm apply clang-format * Apply clang-format to worker.cc * Tyr OSRM serializer removes unnecessary 'std::move' calls * Tyr OSRM serializer break out intersections lane_indications function * WIP: Tyr route_serializer_osrm - adds 'sub' lane instructions to bannerInstructions * Tyr: OSRM serializer #lane_indications function pass turn_lane as pointer * Tyr OSRM serializer: Makes sure, there is always a bannerInstructions in the final step * Tyr OSRM serializer: Removes arrive_banner_instructions function * Tyr OSRM serializer: Adds initial version of gurka test * Tyr OSRM serializer: Apply clang-format * Tyr OSRM serializer expand gurka test * Tyr OSRM serialize improve gurka test to cover ref tag * Tyr OSRM serializer: Creates additional bannerInstruction with 'sub' banner if the lanes come late in the step * Tyr OSRM serializer: Adds lane_indications test * Adds documentation on how to use the OSRM format with the optional banner_instructions * Adds bannerInstructions enhancement to CHANGELOG * Update proto/options.proto Co-authored-by: Kevin Kreiser <[email protected]> * Update docs/docs/api/turn-by-turn/api-reference.md Co-authored-by: Kevin Kreiser <[email protected]> * Tyr OSRM serializer: simplify lane_indications function signature * Tyr OSRM serializer: Improve bannerInstructions - add exits, use only last lane information and pick better primary / secondary banners * Tyr OSRM serializer: Add tests for motorway exit in bannerInstructions * Tyr OSRM serializer: Adds degrees and driving_side to primary banner instruction for roundabouts and their exit steps * Refactor test_osrm_serializer to use a test fixture class * Small changes after code review --------- Co-authored-by: Kevin Kreiser <[email protected]>
- Loading branch information
1 parent
d38153e
commit fe67191
Showing
6 changed files
with
840 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.