add next stop
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m35s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m35s
This commit is contained in:
parent
8bad3eb74e
commit
8ab3ed331f
3 changed files with 12 additions and 2 deletions
|
|
@ -95,7 +95,13 @@ impl TripTrackingService {
|
|||
TripTracking::Tracked(
|
||||
LiveTrip {
|
||||
delay: live_track.delay,
|
||||
next_stop_id: live_track.next_stop_id,
|
||||
next_stop_id: match live_track.next_stop_id {
|
||||
Some(x) => match x.parse() {
|
||||
Ok(y) => Some(y),
|
||||
Err(_) => None
|
||||
},
|
||||
None => None
|
||||
},
|
||||
timestamp: live_track.timestamp,
|
||||
vehicle_id: live_track.vehicle_id
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue