Fix incorrect turn definition

This commit is contained in:
Victor Shcherb 2016-04-12 23:05:18 +02:00
parent d31b6288f0
commit 7088a7555c

View file

@ -788,9 +788,9 @@ public class RouteResultPreparation {
}
} else {
for (int k = 0; k < rawLanes.length; k++) {
int turn = rawLanes[k];
int turn = TurnType.getPrimaryTurn(rawLanes[k]);
boolean active = false;
if (TurnType.getPrimaryTurn(turn) == TurnType.C) {
if (turn == TurnType.C) {
active = true;
} else if (TurnType.isRightTurn(turn) && rs.roadsOnRight == 0) {
// some turns go through many segments (to turn right or left)