use of org.onebusaway.admin.service.bundle.hastus.xml.PttTimingPoint in project onebusaway-application-modules by camsys.
the class HastusGtfsFactory method computeTimepointPositionToScheduleTimep.
private SortedMap<Integer, Integer> computeTimepointPositionToScheduleTimep(PttTrip pttTrip) throws ParseException {
List<PttTimingPoint> timepoints = pttTrip.getTimingPoints();
SortedMap<Integer, Integer> times = new TreeMap<Integer, Integer>();
for (PttTimingPoint timepoint : timepoints) {
Date date = _dateParse.parse(timepoint.getPassingTime());
int time = (int) ((date.getTime() - _midnight.getTime()) / 1000);
times.put(timepoint.getPositionInPattern(), time);
}
return times;
}
Aggregations