Merge remote-tracking branch 'origin/Render-data'

This commit is contained in:
2026-05-19 07:35:53 +01:00
6 changed files with 130 additions and 15 deletions
+4 -1
View File
@@ -67,11 +67,14 @@ impl Gtfs {
if trips.contains_key(&stop_time.trip_id) {
let stop_timestamp = stop_time.departure_time.or(stop_time.arrival_time)?;
debug!("Stop timestamp {} current timestamp {}", stop_timestamp, current_timestamp);
let trip= &self.trips.get(&stop_time.trip_id).unwrap();
if current_timestamp < stop_timestamp.into() {
let arrival: Arrival = Arrival {
route: self.routes.get(&self.trips.get(&stop_time.trip_id)?.route_id)?,
stop: self.stops.get(&stop_time.stop_id)?,
departure_time: NaiveTime::from_num_seconds_from_midnight_opt(stop_timestamp, 0)?
stop_time: stop_time,
trip: &trip,
departure_time: NaiveTime::from_num_seconds_from_midnight_opt(stop_timestamp, 0).unwrap()
};
arrivals.push(arrival);
}