summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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