more precise comment
This commit is contained in:
parent
57b6c21413
commit
a46aad7f5f
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ public class RoutingHelper {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// case if you are getting close to the next point after turn
|
// case if you are getting close to the next point after turn
|
||||||
// but you haven't turned before (could be checked bearing)
|
// but you have not yet turned (could be checked bearing)
|
||||||
if(currentLocation.hasBearing() || lastFixedLocation != null){
|
if(currentLocation.hasBearing() || lastFixedLocation != null){
|
||||||
float bearingToRoute = currentLocation.bearingTo(routeNodes.get(currentRoute));
|
float bearingToRoute = currentLocation.bearingTo(routeNodes.get(currentRoute));
|
||||||
float bearingRouteNext = routeNodes.get(currentRoute).bearingTo(routeNodes.get(currentRoute+1));
|
float bearingRouteNext = routeNodes.get(currentRoute).bearingTo(routeNodes.get(currentRoute+1));
|
||||||
|
|
Loading…
Reference in a new issue