parent
8a27d14f9a
commit
75b22fee2d
@ -427,7 +427,7 @@ public class RouteSearch {
|
|||||||
time = hour + "h " + minute + "m";
|
time = hour + "h " + minute + "m";
|
||||||
}
|
}
|
||||||
|
|
||||||
double dis = ((double) (mStartPoint.distanceTo(mDestinationPoint))) / 1000;
|
double dis = ((double) (mStartPoint.sphericalDistance(mDestinationPoint))) / 1000;
|
||||||
String distance;
|
String distance;
|
||||||
String shortpath;
|
String shortpath;
|
||||||
if (dis < 100) {
|
if (dis < 100) {
|
||||||
|
@ -103,7 +103,7 @@ public class Route {
|
|||||||
RouteLeg leg = new RouteLeg(/* i, i+1, mLinks */);
|
RouteLeg leg = new RouteLeg(/* i, i+1, mLinks */);
|
||||||
legs.add(leg);
|
legs.add(leg);
|
||||||
}
|
}
|
||||||
boundingBox = BoundingBox.fromGeoPoints(routeHigh);
|
boundingBox = new BoundingBox(routeHigh);
|
||||||
status = STATUS_DEFAULT;
|
status = STATUS_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ public class OSRMRouteProvider extends RouteProvider {
|
|||||||
route = new Route(waypoints);
|
route = new Route(waypoints);
|
||||||
} else {
|
} else {
|
||||||
route.buildLegs(waypoints);
|
route.buildLegs(waypoints);
|
||||||
BoundingBox bb = BoundingBox.fromGeoPoints(route.routeHigh);
|
BoundingBox bb = new BoundingBox(route.routeHigh);
|
||||||
//Correcting osmdroid bug #359:
|
//Correcting osmdroid bug #359:
|
||||||
route.boundingBox = bb;
|
route.boundingBox = bb;
|
||||||
// new BoundingBox(
|
// new BoundingBox(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user