From 48c69450d431df7fb3773fa36a27fb3093914f9f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 24 Jan 2023 20:09:00 +0100 Subject: Journey: document station / station_uic / route_interesting --- lib/Travel/Status/DE/HAFAS/Journey.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/Travel/Status/DE/HAFAS') diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index a093f98..10c80fa 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -530,6 +530,14 @@ service notices (e.g. "missing carriage") or detailed delay reasons Returns the operator responsible for this journey. Returns undef if the backend does not provide an operator. +=item $journey->station (station only) + +Name of the station at which this journey was requested. + +=item $journey->station_uic (station only) + +UIC/EVA ID of the station at which this journey was requested. + =item $journey->route Returns a list of hashes; each hash describes a single journey stop. @@ -577,6 +585,12 @@ entire route. Each hash contains the following keys: Individual entries may be undef. +=item $journey->route_interesting([I]) + +Return up to I (default: B<3>) parts of C<< $journey->route >> that may +be particularly helpful, e.g. main stations or airports. +Returns a list of hashes, see above for the layout. + =item $journey->route_end Name of the last route station. In arrival mode, this is where the train -- cgit v1.2.3