summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/HAFAS/Journey.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS/Journey.pm')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm8
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)