use of org.onebusaway.gtfs.model.calendar.ServiceInterval in project onebusaway-gtfs-modules by OneBusAway.
the class CalendarServiceImpl method getServiceDates.
private Map<LocalizedServiceId, List<Date>> getServiceDates(ServiceIdIntervals serviceIdIntervals, ServiceIdOp op, Date from, Date to, boolean includeNextDate) {
CalendarServiceData allData = getData();
Map<LocalizedServiceId, List<Date>> results = new HashMap<LocalizedServiceId, List<Date>>();
for (Map.Entry<LocalizedServiceId, ServiceInterval> entry : serviceIdIntervals) {
LocalizedServiceId serviceId = entry.getKey();
ServiceInterval interval = entry.getValue();
List<Date> serviceDates = getServiceDates(allData, serviceId, interval, op, from, to, includeNextDate);
if (!serviceDates.isEmpty())
results.put(serviceId, serviceDates);
}
return results;
}
Aggregations