Use elogate() to fixup geometry when merging steps, fixes #2424
This commit is contained in:
parent
89aa6b7881
commit
f9f87f25d4
@ -510,9 +510,7 @@ std::vector<RouteStep> postProcess(std::vector<RouteStep> steps)
|
|||||||
{
|
{
|
||||||
// count intersections. We cannot use exit, since intersections can follow directly
|
// count intersections. We cannot use exit, since intersections can follow directly
|
||||||
// after a roundabout
|
// after a roundabout
|
||||||
steps[last_valid_instruction].intersections.insert(
|
steps[last_valid_instruction] = elongate(steps[last_valid_instruction], step);
|
||||||
steps[last_valid_instruction].intersections.end(), step.intersections.begin(),
|
|
||||||
step.intersections.end());
|
|
||||||
step.maneuver.instruction = TurnInstruction::NO_TURN();
|
step.maneuver.instruction = TurnInstruction::NO_TURN();
|
||||||
}
|
}
|
||||||
else if (!isSilent(instruction))
|
else if (!isSilent(instruction))
|
||||||
|
Loading…
Reference in New Issue
Block a user