Fixed arrival time.
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user