summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog9
-rw-r--r--lib/Travel/Status/DE/IRIS/Result.pm16
2 files changed, 25 insertions, 0 deletions
diff --git a/Changelog b/Changelog
index c3b9409..519e2e8 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,12 @@
+git HEAD
+
+ * Result: Add arrival_has_realtime, departure_has_realtime, has_realtime
+ accessors
+ * Result->delay_messages: Leave out superseded messages (right now, the
+ only case is "Defekt am Zug" -> "Behobener Defekt am Zug")
+ * Stations: Add swiss and austrian stations reachable from Waldshut and
+ Lindau
+
Travel::Status::DE::IRIS 1.56 - Sun Jun 20 2021
* Update IRIS station list. Adds support for lots of
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