Fast route calculation
This commit is contained in:
parent
fdd80c9fb7
commit
1e3660c99c
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ public class BinaryRoutePlanner {
|
|||
public BinaryRoutePlanner(NativeLibrary nativeLib, BinaryMapIndexReader... map) {
|
||||
this.nativeLib = nativeLib;
|
||||
if(nativeLib != null) {
|
||||
RoutingConfiguration.DEFAULT_DESIRABLE_TILES_IN_MEMORY = 25;
|
||||
RoutingConfiguration.DEFAULT_DESIRABLE_TILES_IN_MEMORY = 50;
|
||||
}
|
||||
for (BinaryMapIndexReader mr : map) {
|
||||
List<RouteRegion> rr = mr.getRoutingIndexes();
|
||||
|
|
|
@ -23,7 +23,7 @@ public class RoutingConfiguration {
|
|||
// 1.1 tile load parameters (should not affect routing)
|
||||
public int ZOOM_TO_LOAD_TILES = 13; // 12?, 14?
|
||||
public int ITERATIONS_TO_RUN_GC = 100;
|
||||
public static int DEFAULT_DESIRABLE_TILES_IN_MEMORY = 100;
|
||||
public static int DEFAULT_DESIRABLE_TILES_IN_MEMORY = 25;
|
||||
public int NUMBER_OF_DESIRABLE_TILES_IN_MEMORY = DEFAULT_DESIRABLE_TILES_IN_MEMORY;
|
||||
|
||||
// 1.2 Dynamic road prioritizing (heuristic)
|
||||
|
|
Loading…
Reference in a new issue