debugging
This commit is contained in:
parent
91967e9ead
commit
db28739267
3 changed files with 5 additions and 5 deletions
|
@ -130,9 +130,8 @@ public class NativeLibrary {
|
|||
return closeBinaryMapFile(filePath);
|
||||
}
|
||||
|
||||
//todo
|
||||
public NativeTransportRoutingResult[] runNativePTRouting(int sx31, int sy31, int ex31, int ey31,
|
||||
TransportRoutingConfiguration cfg, RouteCalculationProgress progress) {
|
||||
TransportRoutingConfiguration cfg, RouteCalculationProgress progress) {
|
||||
return nativeTransportRouting(new int[] { sx31, sy31, ex31, ey31 }, cfg, progress);
|
||||
}
|
||||
|
||||
|
|
|
@ -635,6 +635,4 @@ public class BinaryMapTransportReaderAdapter {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class TransportRoutePlanner {
|
|||
ctx.startCalcTime = System.currentTimeMillis();
|
||||
List<TransportRouteSegment> startStops = ctx.getTransportStops(start);
|
||||
List<TransportRouteSegment> endStops = ctx.getTransportStops(end);
|
||||
|
||||
/** delete */System.out.println(String.format("startStops/endStops: %d / %d", startStops.size(), endStops.size()));
|
||||
TLongObjectHashMap<TransportRouteSegment> endSegments = new TLongObjectHashMap<TransportRouteSegment>();
|
||||
for(TransportRouteSegment s : endStops) {
|
||||
endSegments.put(s.getId(), s);
|
||||
|
@ -57,8 +57,11 @@ public class TransportRoutePlanner {
|
|||
r.distFromStart = r.walkDist / ctx.cfg.walkSpeed;
|
||||
queue.add(r);
|
||||
}
|
||||
|
||||
/** delete */System.out.println(String.format("queue size: %d", queue.size()));
|
||||
double finishTime = ctx.cfg.maxRouteTime;
|
||||
double maxTravelTimeCmpToWalk = MapUtils.getDistance(start, end) / ctx.cfg.walkSpeed - ctx.cfg.changeTime / 2;
|
||||
/** delete */System.out.println(String.format("queue size: %d", queue.size()));
|
||||
List<TransportRouteSegment> results = new ArrayList<TransportRouteSegment>();
|
||||
initProgressBar(ctx, start, end);
|
||||
while (!queue.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue