fix ordering
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m20s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m20s
This commit is contained in:
parent
8f62ee812e
commit
33f58a7b3a
3 changed files with 15 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue