summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-28 08:30:44 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-28 08:30:44 +0200
commiteef938bb3688a8a64c2853ceb237d28e3bfd861b (patch)
tree6eb6560c2db423fbdcd7637693a7c4e413e99341
parenta9d5268457783df67c77b3bce67d9f750ba14df1 (diff)
document load accessor
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm
index 5f1290b..b236e5d 100644
--- a/lib/Travel/Status/DE/HAFAS/Journey.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -428,6 +428,14 @@ otherwise. May be undef.
True if the real-time platform is known and it is not the scheduled one.
+=item $journey->load (station only)
+
+Expected passenger load (i.e., how full the vehicle is) at the requested stop.
+If known, returns a hashref that maps classes (typically FIRST/SECOND) to
+load estimation numbers. The DB backend uses 1 (low to medium), 2 (high),
+3 (very high), and 4 (exceptionally high, train is booked out).
+Undef if unknown.
+
=item $journey->messages
Returns a list of message strings related to this journey. Messages usually are
@@ -476,6 +484,8 @@ entire route. Each hash contains the following keys:
=item * direction (direction signage from this stop on, undef if unchanged)
+=item * load (expected utilization / passenger load from this stop on)
+
=back
Individual entries may be undef.