From eef938bb3688a8a64c2853ceb237d28e3bfd861b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 28 Oct 2022 08:30:44 +0200 Subject: document load accessor --- lib/Travel/Status/DE/HAFAS/Journey.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. -- cgit v1.2.3