Make parameter 0-based maxnumber of changes
This commit is contained in:
parent
a301490d11
commit
0c8ce1270a
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ public class TransportRoutePlanner {
|
||||||
ctx.visitedRoutesCount++;
|
ctx.visitedRoutesCount++;
|
||||||
ctx.visitedSegments.put(segment.getId(), segment);
|
ctx.visitedSegments.put(segment.getId(), segment);
|
||||||
|
|
||||||
if (segment.getDepth() > ctx.cfg.maxNumberOfChanges) {
|
if (segment.getDepth() > ctx.cfg.maxNumberOfChanges + 1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (segment.distFromStart > finishTime + ctx.cfg.finishTimeSeconds ||
|
if (segment.distFromStart > finishTime + ctx.cfg.finishTimeSeconds ||
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class TransportRoutingConfiguration {
|
||||||
|
|
||||||
public int walkChangeRadius = 300;
|
public int walkChangeRadius = 300;
|
||||||
|
|
||||||
public int maxNumberOfChanges = 4;
|
public int maxNumberOfChanges = 3;
|
||||||
|
|
||||||
public int finishTimeSeconds = 1200;
|
public int finishTimeSeconds = 1200;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue