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) { if (cycle) {
result.add(n.get(first)); result.add(n.get(first));
kept[first] = true;
} }
kept[first] = true;
return kept; return kept;
} }

View file

@ -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();