From 5d392e3d5ac766f0db3ca976023945fc14ee828c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 16 Sep 2015 15:01:46 +0200 Subject: Updates HAFAS.pm documentation --- lib/Travel/Status/DE/HAFAS.pm | 88 +++++++++++++++++++++++++++++++++---------- 1 file changed, 69 insertions(+), 19 deletions(-) diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index 7747818..c67ac8d 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -342,7 +342,7 @@ sub get_service { my ($service) = @_; if ( defined $service ) { - return $hafas_instance{$service}; + return %{ $hafas_instance{$service} }; } return; } @@ -414,50 +414,70 @@ Supported I are: =item B => I -The train station to report for, e.g. "Essen HBf" or +The station or stop to report for, e.g. "Essen HBf" or "Alfredusbad, Essen (Ruhr)". Mandatory. =item B => I
.I.I Date to report for. Defaults to the current day. +=item B => [I, I, ...] + +By default, all modes of transport (trains, trams, buses etc.) are returned. +If this option is set, all modes appearing in I, I, ... will +be excluded. The supported modes depend on B, use +B or B to get the supported values. + +Note that this parameter does not work if the B parameter is set. + +=item B => [I, I, ...] + +If this option is set, only the modes of transport appearing in I, +I, ... will be returned. The supported modes depend on B, use +B or B to get the supported values. + +Note that this parameter does not work if the B parameter is set. + =item B => I -Set language for additional information. Accepted arguments: Beutsch, -Bnglish, Btalian, B (dutch). +Set language for additional information. Accepted arguments are Beutsch, +Bnglish, Btalian and B (dutch), depending on the used service. =item B => I<\%hashref> Passed on to C<< LWP::UserAgent->new >>. Defaults to C<< { timeout => 10 } >>, you can use an empty hashref to override it. -=item B