more precise comment

This commit is contained in:
sonora 2012-03-20 22:18:11 +01:00
parent 57b6c21413
commit a46aad7f5f

View file

@ -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));