diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-10-08 21:08:39 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-10-08 21:08:39 +0200 |
commit | 53a4766b0d3e78bd73f0be5567d5383eba6cbd3f (patch) | |
tree | e6739bd1b99e3c4b8eb8505c337a8e8f29399319 /lib | |
parent | 54b26725efa0eb407bc2c824a66aae4df19f542b (diff) |
Departure: pass arr/dep delay on to Stop; arr/dep are schedule data
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travel/Status/DE/EFA/Departure.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Travel/Status/DE/EFA/Departure.pm b/lib/Travel/Status/DE/EFA/Departure.pm index 20f7c42..c1ffd19 100644 --- a/lib/Travel/Status/DE/EFA/Departure.pm +++ b/lib/Travel/Status/DE/EFA/Departure.pm @@ -150,9 +150,11 @@ sub parse_route { push( @ret, Travel::Status::DE::EFA::Stop->new( - arr => $arr, - dep => $dep, - id => $stop->{ref}{id}, + sched_arr => $arr, + sched_dep => $dep, + arr_delay => $ref->{arrValid} ? $ref->{arrDelay} : undef, + dep_delay => $ref->{depValid} ? $ref->{depDelay} : undef, + id => $ref->{id}, full_name => $stop->{name}, place => $stop->{place}, name => $stop->{nameWO}, |