From b272087f7bf83da66360cc0cc46611a4d8efff4e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 3 Dec 2011 11:04:24 +0100 Subject: note that ->via does not work reliably, remove it from bin/efa --- bin/efa | 8 +------- lib/Travel/Routing/DE/VRR/Route/Part.pm | 9 ++++++++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bin/efa b/bin/efa index 5201c68..864beea 100755 --- a/bin/efa +++ b/bin/efa @@ -126,12 +126,6 @@ sub display_connection { $c->train_line, $c->train_destination, ); - if ( $opt->{'extended-info'} and $opt->{'extended-info'} == 2 ) { - for my $via ( $c->via ) { - printf( "%-5s %-22s %s\n", @{$via}[ 1 .. 3 ] ); - } - } - printf( "%-5s an %s\n\n", $c->arrival_time, $c->arrival_stop_and_platform, ); @@ -148,7 +142,7 @@ GetOptions( date|d=s depart=s exclude|e=s@ - extended-info|E+ + extended-info|E from=s@{2} help|h ignore-info|I:s diff --git a/lib/Travel/Routing/DE/VRR/Route/Part.pm b/lib/Travel/Routing/DE/VRR/Route/Part.pm index ae5e916..e49e122 100644 --- a/lib/Travel/Routing/DE/VRR/Route/Part.pm +++ b/lib/Travel/Routing/DE/VRR/Route/Part.pm @@ -170,6 +170,13 @@ destination of the line providing the connection name / number of the line +=item $part->via + +List of stops passed between departure_stop and arrival_stop, as +C<< [ "DD.MM.YYYY", "HH:MM", stop, platform ] >> hashrefs. + +May be empty, these are not always reported by efa.vrr.de. + =back =head1 DIAGNOSTICS @@ -186,7 +193,7 @@ None. =head1 BUGS AND LIMITATIONS -None known. +$part->via does not work reliably. =head1 SEE ALSO -- cgit v1.2.3