parent
8a27d14f9a
commit
75b22fee2d
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user