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:
vshcherb 2014-01-21 01:58:52 +01:00
parent 4b9697f104
commit 99261472db
2 changed files with 4 additions and 3 deletions

View file

@ -184,8 +184,9 @@ public class OsmMapUtils {
}
if (cycle) {
result.add(n.get(first));
kept[first] = true;
}
kept[first] = true;
return kept;
}

View file

@ -421,8 +421,8 @@ public class RouteProvider {
memoryLimit, specialization);
RoutingContext ctx = router.buildRoutingContext(cf, params.ctx.getInternalAPI().getNativeLibrary(), files,
// TODO introduce
/*params.mode.isDerivedRoutingFrom(ApplicationMode.CAR) ?
RouteCalculationMode.COMPLEX : */RouteCalculationMode.NORMAL);
params.mode.isDerivedRoutingFrom(ApplicationMode.CAR) ?
RouteCalculationMode.COMPLEX : RouteCalculationMode.NORMAL);
ctx.calculationProgress = params.calculationProgress;
if(params.previousToRecalculate != null) {
ctx.previouslyCalculatedRoute = params.previousToRecalculate.getOriginalRoute();