Fixed arrival time.

This commit is contained in:
2026-05-19 08:37:30 +01:00
parent e758edd45a
commit cef6faa05f
6 changed files with 15 additions and 9 deletions
+2 -1
View File
@@ -74,12 +74,13 @@ impl Gtfs {
stop: self.stops.get(&stop_time.stop_id)?,
stop_time: stop_time,
trip: &trip,
departure_time: NaiveTime::from_num_seconds_from_midnight_opt(stop_timestamp, 0).unwrap()
departure_time: stop_timestamp.into()
};
arrivals.push(arrival);
}
}
}
arrivals.sort();
debug!("Found {} arrivals", arrivals.len());
return Some(arrivals);