if (remainingWalkingTime > 0)
timedGridFactory.addPoint(stopLat, stopLon, duration,
remainingWalkingTime);
}
MinTransitTimeResult result = new MinTransitTimeResult();
result.setComplete(true);
result.setMinTravelTimeToStops(minTravelTimeToStops);
if (timeSegmentSize < 1)
timeSegmentSize = 5;
Map<Integer, List<EncodedPolygonBean>> polygonsByTime = timedGridFactory.getPolygonsByTime(timeSegmentSize);
for (Map.Entry<Integer, List<EncodedPolygonBean>> entry : polygonsByTime.entrySet()) {
int t = entry.getKey();
for (EncodedPolygonBean bean : entry.getValue()) {
result.getTimePolygons().add(bean);
result.getTimes().add(t * timeSegmentSize);
}
}
result.setSearchGrid(gridFactory.getGrid());
return result;
}