fix ordering
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m20s

This commit is contained in:
Nicholas Orlowsky 2026-01-13 22:26:18 -05:00
parent 8f62ee812e
commit 33f58a7b3a
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
3 changed files with 15 additions and 5 deletions

View file

@ -13,6 +13,12 @@ pub struct StopSchedule {
pub platform: Arc<Platform>
}
impl StopSchedule {
pub fn get_arrival_time(&self, live_info: &LiveTrip) -> i64 {
return self.arrival_time + (live_info.delay * 60.0 as f64) as i64;
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Trip {
pub service_id: String,