Do not combine a segregated edge with a roundabout (#5040)

* Do not combine a segregated edge with a roundabout, add test
This commit is contained in:
Duane Gearhart
2018-04-20 05:41:53 -04:00
committed by Karen Shea
parent c4eff6cd65
commit 7740d5d7c0
4 changed files with 113 additions and 5 deletions
+4 -3
View File
@@ -618,9 +618,10 @@ RouteSteps collapseSegregatedTurnInstructions(RouteSteps steps)
TransferLanesStrategy());
++next_step;
}
// else if the current step is segregated and the next step is not then combine with turn
// adjustment
else if (curr_step->is_segregated && !next_step->is_segregated)
// else if the current step is segregated and the next step is not segregated
// and the next step is not a roundabout then combine with turn adjustment
else if (curr_step->is_segregated && !next_step->is_segregated &&
!hasRoundaboutType(next_step->maneuver.instruction))
{
// Determine if u-turn
if (bearingsAreReversed(