summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-07-18 11:01:02 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-07-18 11:01:02 +0200
commit05d90af52205abdd8100abeb58a2bf7ac32c3334 (patch)
treefc9e305692ef1141ca327127d9eab9ebfe747612 /lib
parent3c3d177698b65568a7d1d22316ddafa30ee32fec (diff)
documentation, changelog
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/IRIS/Result.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm
index 966d5cb..7fd8300 100644
--- a/lib/Travel/Status/DE/IRIS/Result.pm
+++ b/lib/Travel/Status/DE/IRIS/Result.pm
@@ -905,6 +905,10 @@ Estimated arrival delay in minutes (integer number). undef if no realtime
data is available, the train starts at the specified station, or there is
no scheduled arrival time (e.g. due to diversions). May be negative.
+=item $result->arrival_has_realtime
+
+True if "arrival" is based on real-time data.
+
=item $result->arrival_is_additional
True if the arrival at this stop is an additional (unscheduled) event, i.e.,
@@ -974,6 +978,10 @@ Estimated departure delay in minutes (integer number). undef if no realtime
data is available, the train terminates at the specified station, or there is
no scheduled departure time (e.g. due to diversions). May be negative.
+=item $result->departure_has_realtime
+
+True if "departure" is based on real-time data.
+
=item $result->departure_is_additional
True if the train's departure at this stop is unscheduled (additional), i.e.,
@@ -994,6 +1002,14 @@ empty list) otherwise.
Alias for route_end.
+=item $result->has_realtime
+
+True if arrival or departure time are based on real-time data. Note that this
+is different from C<< defined($esult->delay) >>. If delay is defined, some kind
+of realtime information for the train is available, but not necessarily its
+arrival/departure time. If has_realtime is true, arrival/departure time are
+available. This behaviour may change in the future.
+
=item $result->info
List of information strings. Contains both reasons for delays (which may or