suppress turn prompt also for recalculated still-opposite route
This commit is contained in:
parent
4c41948378
commit
85423cf60c
1 changed files with 5 additions and 7 deletions
|
@ -359,16 +359,14 @@ public class RoutingHelper {
|
|||
float bearingRoute;
|
||||
bearingRoute = currentLocation.bearingTo(routeNodes.get(currentRoute));
|
||||
if (Math.abs(bearing - bearingRoute) > 45f && 360 - Math.abs(bearing - bearingRoute) > 45f) {
|
||||
if (Math.abs(bearing - bearingRoute) <= 135f && 360 - Math.abs(bearing - bearingRoute) <= 135f) {
|
||||
//float d = currentLocation.distanceTo(routeNodes.get(currentRoute));
|
||||
//if (d > 50) {
|
||||
// disregard upper bound to suppress turn prompt also for recalculated still-opposite route
|
||||
//if (Math.abs(bearing - bearingRoute) <= 135f && 360 - Math.abs(bearing - bearingRoute) <= 135f) {
|
||||
suppressTurnPrompt = true;
|
||||
//log.info("Bearing is off from bearingRoute between >45 and <=135 degrees"); //$NON-NLS-1$
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 7. Check necessity for unscheduled U-turn, Issue 863
|
||||
if(routeNodes.size() > 0){
|
||||
|
|
Loading…
Reference in a new issue