diff --git a/CHANGELOG.md b/CHANGELOG.md index 93ac75a09b7..afbe4927555 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - CHANGED #4929: Don't use obviousness for links bifurcations [#4929](https://github.com/Project-OSRM/osrm-backend/pull/4929) - FIXED #4929: Adjust Straight direction modifiers of side roads in driveway handler [#4929](https://github.com/Project-OSRM/osrm-backend/pull/4929) - CHANGED #4925: Added post process logic to collapse segregated turn instructions [#4925](https://github.com/Project-OSRM/osrm-backend/pull/4925) + - ADDED: Maneuver relation now supports `straight` as a direction [#4995](https://github.com/Project-OSRM/osrm-backend/pull/4995) - Tools: - `osrm-routed` accepts a new property `--memory_file` to store memory in a file on disk. - NodeJS: diff --git a/features/guidance/maneuver-tag.feature b/features/guidance/maneuver-tag.feature index 951da1452e8..29aa95f4d66 100644 --- a/features/guidance/maneuver-tag.feature +++ b/features/guidance/maneuver-tag.feature @@ -27,6 +27,7 @@ Feature: Maneuver tag support | maneuver | abc | c | cgi | turn | sharp_right | | maneuver | hij | i | cde | turn | sharp_left | | maneuver | abc | c | cde | turn | slight_left | + | maneuver | cde | c | cgi | turn | straight | When I route I should get | waypoints | route | turns | @@ -35,6 +36,7 @@ Feature: Maneuver tag support | b,g | A Street,C Street,C Street | depart,turn sharp right,arrive | # Testing re-awakening suppressed turns | a,e | A Street,B Street,B Street | depart,turn slight left,arrive | + | e,i | B Street,C Street,C Street | depart,turn straight,arrive | Scenario: single via-way Given the node map diff --git a/src/extractor/extraction_containers.cpp b/src/extractor/extraction_containers.cpp index 56afe9cc4ab..d5c31d53414 100644 --- a/src/extractor/extraction_containers.cpp +++ b/src/extractor/extraction_containers.cpp @@ -844,6 +844,10 @@ void ExtractionContainers::PrepareManeuverOverrides() { result.second = guidance::DirectionModifier::Right; } + else if (direction_string == "straight") + { + result.second = guidance::DirectionModifier::Straight; + } return result; };