Fix route calculation
This commit is contained in:
parent
5afe3a90ad
commit
c638e01dfd
2 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
||||||
package net.osmand.router;
|
package net.osmand.router;
|
||||||
|
|
||||||
|
import net.osmand.NativeLibrary;
|
||||||
import net.osmand.PlatformUtil;
|
import net.osmand.PlatformUtil;
|
||||||
import net.osmand.binary.BinaryMapIndexReader;
|
import net.osmand.binary.BinaryMapIndexReader;
|
||||||
import net.osmand.binary.BinaryMapRouteReaderAdapter.RouteTypeRule;
|
import net.osmand.binary.BinaryMapRouteReaderAdapter.RouteTypeRule;
|
||||||
|
@ -1740,7 +1741,7 @@ public class RouteResultPreparation {
|
||||||
public void remove() {
|
public void remove() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} else if (recalculation) {
|
} else if (recalculation || ctx.nativeLib == null) {
|
||||||
RouteSegment rt = ctx.loadRouteSegment(road.getPoint31XTile(pointInd), road.getPoint31YTile(pointInd), ctx.config.memoryLimitation);
|
RouteSegment rt = ctx.loadRouteSegment(road.getPoint31XTile(pointInd), road.getPoint31YTile(pointInd), ctx.config.memoryLimitation);
|
||||||
it = rt == null ? null : rt.getIterator();
|
it = rt == null ? null : rt.getIterator();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue