Fix Travis build #200 #201

This commit is contained in:
Emux 2016-10-08 16:36:51 +03:00
parent 8a27d14f9a
commit 75b22fee2d
3 changed files with 3 additions and 3 deletions

View File

@ -427,7 +427,7 @@ public class RouteSearch {
time = hour + "h " + minute + "m";
}
double dis = ((double) (mStartPoint.distanceTo(mDestinationPoint))) / 1000;
double dis = ((double) (mStartPoint.sphericalDistance(mDestinationPoint))) / 1000;
String distance;
String shortpath;
if (dis < 100) {

View File

@ -103,7 +103,7 @@ public class Route {
RouteLeg leg = new RouteLeg(/* i, i+1, mLinks */);
legs.add(leg);
}
boundingBox = BoundingBox.fromGeoPoints(routeHigh);
boundingBox = new BoundingBox(routeHigh);
status = STATUS_DEFAULT;
}

View File

@ -254,7 +254,7 @@ public class OSRMRouteProvider extends RouteProvider {
route = new Route(waypoints);
} else {
route.buildLegs(waypoints);
BoundingBox bb = BoundingBox.fromGeoPoints(route.routeHigh);
BoundingBox bb = new BoundingBox(route.routeHigh);
//Correcting osmdroid bug #359:
route.boundingBox = bb;
// new BoundingBox(