From e1a7eefbb36126b925e78b9f7acd3ac9a086e85c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 26 Nov 2011 18:10:58 +0100 Subject: VRR.pm / Result.pm: Fix ->lines and ->type documentation --- lib/Travel/Status/DE/VRR/Result.pm | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) (limited to 'lib/Travel/Status/DE/VRR/Result.pm') diff --git a/lib/Travel/Status/DE/VRR/Result.pm b/lib/Travel/Status/DE/VRR/Result.pm index f65cfb1..ae352e0 100644 --- a/lib/Travel/Status/DE/VRR/Result.pm +++ b/lib/Travel/Status/DE/VRR/Result.pm @@ -83,7 +83,8 @@ Destination name. Additional information related to the departure (string). If departures for an address were requested, this is the stop name, otherwise it may be recent -news related to the line's schedule. +news related to the line's schedule. If no information is available, returns +an empty string. =item $departure->line @@ -120,8 +121,8 @@ Actual departure time (HH:MM). =item $departure->type -Type of the departing train, values observed so far are "StraEenbahn", -"Bus", "NE", "S-Bahn" and "U-Bahn". +Type of the departure. Note that efa.vrr.de sometimes puts bogus data in this +field. See L. =back @@ -136,6 +137,34 @@ call this. =back +=head1 DEPARTURE TYPES + +The following are known so far: + +=over + +=item * Abellio-Zug + +=item * Eurocity + +=item * Intercity-Express + +=item * NE (NachtExpress / night bus) + +=item * Niederflurbus + +=item * R-Bahn (RE / RegionalExpress) + +=item * S-Bahn + +=item * SB (Schnellbus) + +=item * Straßenbahn + +=item * U-Bahn + +=back + =head1 DIAGNOSTICS None. @@ -150,7 +179,8 @@ None. =head1 BUGS AND LIMITATIONS -Not all possible B values are documented yet. +C<< $result->type >> may contain bogus data. This comes from the efa.vrr.de +interface. =head1 SEE ALSO -- cgit v1.2.3