From 53a4766b0d3e78bd73f0be5567d5383eba6cbd3f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 8 Oct 2024 21:08:39 +0200 Subject: Departure: pass arr/dep delay on to Stop; arr/dep are schedule data --- lib/Travel/Status/DE/EFA/Departure.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/Travel') 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}, -- cgit v1.2.3