diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2022-10-27 18:08:20 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2022-10-27 18:08:20 +0200 |
commit | 8acf974d48f1aac5c98e3995bb61b4a179ca09db (patch) | |
tree | 5e1fd28d5be9604d5225d68641f28f9ada72bf58 /lib/Travel/Status | |
parent | f1a225b0b612ddeadcc92dcc709bfb2c39a2de3c (diff) |
Journey: add stop direction
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Journey.pm | 8 |
1 files 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) |