summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-12-03 11:04:24 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-12-03 11:04:24 +0100
commitb272087f7bf83da66360cc0cc46611a4d8efff4e (patch)
treec93d05f8c69f4b1249e2643493eb09120a788d08
parentb5eb02bb495287175556829a7b89ecc51dd8605e (diff)
note that ->via does not work reliably, remove it from bin/efa
-rwxr-xr-xbin/efa8
-rw-r--r--lib/Travel/Routing/DE/VRR/Route/Part.pm9
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