Test new routing provider (alpha routing should work with java for quite long distance). Maps needs to be updated (new regeneration 22 Jan
This commit is contained in:
parent
4b9697f104
commit
99261472db
2 changed files with 4 additions and 3 deletions
|
@ -184,8 +184,9 @@ public class OsmMapUtils {
|
||||||
}
|
}
|
||||||
if (cycle) {
|
if (cycle) {
|
||||||
result.add(n.get(first));
|
result.add(n.get(first));
|
||||||
kept[first] = true;
|
|
||||||
}
|
}
|
||||||
|
kept[first] = true;
|
||||||
|
|
||||||
return kept;
|
return kept;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -421,8 +421,8 @@ public class RouteProvider {
|
||||||
memoryLimit, specialization);
|
memoryLimit, specialization);
|
||||||
RoutingContext ctx = router.buildRoutingContext(cf, params.ctx.getInternalAPI().getNativeLibrary(), files,
|
RoutingContext ctx = router.buildRoutingContext(cf, params.ctx.getInternalAPI().getNativeLibrary(), files,
|
||||||
// TODO introduce
|
// TODO introduce
|
||||||
/*params.mode.isDerivedRoutingFrom(ApplicationMode.CAR) ?
|
params.mode.isDerivedRoutingFrom(ApplicationMode.CAR) ?
|
||||||
RouteCalculationMode.COMPLEX : */RouteCalculationMode.NORMAL);
|
RouteCalculationMode.COMPLEX : RouteCalculationMode.NORMAL);
|
||||||
ctx.calculationProgress = params.calculationProgress;
|
ctx.calculationProgress = params.calculationProgress;
|
||||||
if(params.previousToRecalculate != null) {
|
if(params.previousToRecalculate != null) {
|
||||||
ctx.previouslyCalculatedRoute = params.previousToRecalculate.getOriginalRoute();
|
ctx.previouslyCalculatedRoute = params.previousToRecalculate.getOriginalRoute();
|
||||||
|
|
Loading…
Reference in a new issue