Commit f6799c2b authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

efa-m: use scheduled times for departure list and update documentation

parent 269feacd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@ git HEAD
    * efa-m: Add -V / --track-via option
    * efa-m: Add -O / --output option with outputtypes
      route_after, route_before, fullroute and route
    * efa-m: Always output schedule data when absolute times are requested.
      As before, delays are indicated by a +xyz mark next to the time

Travel::Status::DE::VRR 1.10 - Thu Jun 25 2015

+13 −5
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ sub show_results {
		my @output_line;
		my $platform = $d->platform;
		my $dtime    = (
			$relative_times ? sprintf( '%2d min', $d->countdown ) : $d->time );
			$relative_times ? sprintf( '%2d min', $d->countdown ) : $d->sched_time );

		if ( $d->platform_db ) {
			$platform .= ' (DB)';
@@ -227,8 +227,13 @@ sub show_results {
			$dtime .= '' . $via->arr_time;
		}
		if ( $d->delay ) {
			if ($relative_times) {
				$dtime .= ' (+' . $d->delay . ')';
			}
			else {
				$dtime .= ' +' . $d->delay;
			}
		}

		@output_line
		  = ( $dtime, $platform, $d->line, q{}, $d->destination, $d->info );
@@ -289,8 +294,9 @@ version 1.10

=head1 DESCRIPTION

B<efa-m> lists upcoming tram, bus and train departures at the location I<name>
in I<city>.
B<efa-m> lists scheduled tram, bus and train departures at the location I<name>
in I<city>.  Realtime data (i.e. delays) is included if available, it's
visible in the output as a "+x" remark (meaning a delay of x minutes).

By default, I<name> refers to a stop, this can be changed by specifying
I<type>.  Supported types are B<address> and B<poi> (point of interest).
@@ -361,7 +367,9 @@ repeated). Note that the C<< Bstg. >> / C<< Gleis >> prefix must be omitted.

=item B<-r>, B<--relative>

Use relative departure times.
Show relative departure times in minutes (i.e. the time difference between
the departure and the time of the request).  In this case, realtime data is
already included.

=item B<-t>, B<--time> I<hh:mm>