From 8acf974d48f1aac5c98e3995bb61b4a179ca09db Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 27 Oct 2022 18:08:20 +0200 Subject: Journey: add stop direction --- lib/Travel/Status/DE/HAFAS/Journey.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index fead012..1c0962f 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -135,7 +135,8 @@ sub new { arr_delay => $arr_delay, dep => $rt_dep // $sched_dep, dep_delay => $dep_delay, - delay => $dep_delay // $arr_delay + delay => $dep_delay // $arr_delay, + direction => $stop->{dDirTxt}, } ); } @@ -456,6 +457,8 @@ entire route. Each hash contains the following keys: =item * delay (departure or arrival delay in minutes) +=item * direction (direction signage from this stop on, undef if unchanged) + =back Individual entries may be undef. @@ -476,7 +479,8 @@ Alias for route_end; only set when requesting arrivals in station mode. =item $journey->direction Train direction; this is typically the text printed on the train itself. -May be different from destination / route_end and may change along the route. +May be different from destination / route_end and may change along the route, +see above. =item $journey->polyline (journey only) -- cgit v1.2.3