shorten voice propmts by increasing degree range for "regular" turns
This commit is contained in:
parent
ffeaac7b68
commit
9c6cda89ab
1 changed files with 4 additions and 4 deletions
|
@ -600,11 +600,11 @@ public class RouteResultPreparation {
|
|||
// mpi = MapUtils.degreesDiff(prev.getBearingEnd(), begin);
|
||||
}
|
||||
if (mpi >= TURN_DEGREE_MIN) {
|
||||
if (mpi < 60) {
|
||||
if (mpi < 45) {
|
||||
t = TurnType.valueOf(TurnType.TSLL, leftSide);
|
||||
} else if (mpi < 120) {
|
||||
t = TurnType.valueOf(TurnType.TL, leftSide);
|
||||
} else if (mpi < 135 || leftSide) {
|
||||
} else if (mpi < 150 || leftSide) {
|
||||
t = TurnType.valueOf(TurnType.TSHL, leftSide);
|
||||
} else {
|
||||
t = TurnType.valueOf(TurnType.TU, leftSide);
|
||||
|
@ -612,11 +612,11 @@ public class RouteResultPreparation {
|
|||
int[] lanes = getTurnLanesInfo(prev, t.getValue());
|
||||
t.setLanes(lanes);
|
||||
} else if (mpi < -TURN_DEGREE_MIN) {
|
||||
if (mpi > -60) {
|
||||
if (mpi > -45) {
|
||||
t = TurnType.valueOf(TurnType.TSLR, leftSide);
|
||||
} else if (mpi > -120) {
|
||||
t = TurnType.valueOf(TurnType.TR, leftSide);
|
||||
} else if (mpi > -135 || !leftSide) {
|
||||
} else if (mpi > -150 || !leftSide) {
|
||||
t = TurnType.valueOf(TurnType.TSHR, leftSide);
|
||||
} else {
|
||||
t = TurnType.valueOf(TurnType.TRU, leftSide);
|
||||
|
|
Loading…
Reference in a new issue