Fix #5922
This commit is contained in:
parent
03ff085914
commit
d2234f6e57
1 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,9 @@ public class RoutePlannerFrontEnd {
|
|||
if (dataObjects.isEmpty()) {
|
||||
ctx.loadTileData(px, py, 15, dataObjects);
|
||||
}
|
||||
if (dataObjects.isEmpty()) {
|
||||
ctx.loadTileData(px, py, 13, dataObjects);
|
||||
}
|
||||
if (list == null) {
|
||||
list = new ArrayList<BinaryRoutePlanner.RouteSegmentPoint>();
|
||||
}
|
||||
|
@ -196,6 +199,9 @@ public class RoutePlannerFrontEnd {
|
|||
RoutingContext nctx = buildRoutingContext(ctx.config, ctx.nativeLib, ctx.getMaps(), RouteCalculationMode.BASE);
|
||||
nctx.calculationProgress = ctx.calculationProgress;
|
||||
List<RouteSegmentResult> ls = searchRoute(nctx, start, end, intermediates);
|
||||
if(ls == null) {
|
||||
return null;
|
||||
}
|
||||
routeDirection = PrecalculatedRouteDirection.build(ls, ctx.config.DEVIATION_RADIUS, ctx.getRouter().getMaxSpeed());
|
||||
}
|
||||
if (intermediatesEmpty && ctx.nativeLib != null) {
|
||||
|
|
Loading…
Reference in a new issue