Use total angle for turn instruction if entry step has large distance

This commit is contained in:
Michael Krasnyk
2017-04-12 16:11:28 +02:00
committed by Patrick Niklaus
parent 1080d25fcf
commit dea3144c4d
2 changed files with 36 additions and 3 deletions
-3
View File
@@ -74,9 +74,6 @@ double findTotalTurnAngle(const RouteStep &entry_step, const RouteStep &exit_ste
if (entry_step.distance < MAX_COLLAPSE_DISTANCE)
return true;
if (entry_step.distance > 2 * MAX_COLLAPSE_DISTANCE)
return false;
// both go roughly in the same direction
if ((entry_angle <= 185 && exit_angle <= 185) || (entry_angle >= 175 && exit_angle >= 175))
return true;