Use smaller range for U-turn angles in map-matching

This commit is contained in:
Michael Krasnyk
2018-02-27 13:39:01 +01:00
parent 33021d37a1
commit c048a36a4c
5 changed files with 41 additions and 6 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ void filterCandidates(const std::vector<util::Coordinate> &coordinates,
coordinates[current_coordinate + 1]);
// sharp turns indicate a possible uturn
if (turn_angle <= 90.0 || turn_angle >= 270.0)
if (turn_angle <= 45.0 || turn_angle >= 315.0)
{
allow_uturn = true;
}