Fix cloudmade ETA
This commit is contained in:
parent
2cc38a6c35
commit
3fbc2b001d
1 changed files with 1 additions and 0 deletions
|
@ -451,6 +451,7 @@ public class RouteProvider {
|
|||
RouteDirectionInfo last = directions.get(directions.size() - 1);
|
||||
// update speed using time and idstance
|
||||
last.setAverageSpeed((distanceToEnd[last.routePointOffset] - distanceToEnd[offset])/last.getAverageSpeed());
|
||||
last.distance = (int) (distanceToEnd[last.routePointOffset] - distanceToEnd[offset]);
|
||||
}
|
||||
// save time as a speed because we don't know distance of the route segment
|
||||
float avgSpeed = time;
|
||||
|
|
Loading…
Reference in a new issue