Travel::Routing::DE::EFA::Route::Part - Describes one connection between two points, without interchanges
for my $part ( $route->parts ) { if ( $part->extra ) { say join( "\n", $part->extra ); } printf( "%s at %s -> %s at %s, via %s to %s", $part->departure_time, $part->departure_stop, $part->arrival_time, $part->arrival_stop, $part->train_line, $part->train_destination, ); }
version 2.08
Travel::Routing::DE::EFA::Route::Part holds one specific connection (without interchanges) between two points. It specifies the start/stop point and time, the train line and its destination, and optional additional data.
It is usually obtained by a call to Travel::Routing::DE::EFA::Route(3pm)'s parts method.
"Actual" in the description means that the delay (if available) is already included in the calculation, "Scheduled" means it isn't.
arrival stop (city name plus station name)
arrival platform (either "Gleis x" or "Bstg. x")
"stop: platform" concatenation
Actual arrival date in DD.MM.YYYY format
Actual arrival time in HH:MM format
Scheduled arrival date in DD.MM.YYYY format
Scheduled arrival time in HH:MM format
List of URLs, may be empty. Each URL poinst to a transfer map for the arrival station, usually outlining how to transfer from this train to the next one (if applicable).
List of URLs, may be empty. Each URL points to an HTML map of the arrival station.
delay in minutes, 0 if unknown
departure stop (city name plus station name)
departure platform (either "Gleis x" or "Bstg. x")
Actual departure date in DD.MM.YYYY format
Actual departure time in HH:MM format
Scheduled departure date in DD.MM.YYYY format
Scheduled departure time in HH:MM format
List of URLs, may be empty. Each URL points to a PDF a transfer map for the departure station, usually outlining how to transfer from thep previous train (if applicable) to this one.
List of URLs, may be empty. Each URL poinst to an HTML map of the departure station.
Additional information about the connection. Returns a list of newline-terminated strings
destination of the line providing the connection
name / number of the line
List of stops passed between departure_stop and arrival_stop, as [ "DD.MM.YYYY", "HH:MM", stop, platform ] hashrefs.
[ "DD.MM.YYYY", "HH:MM", stop, platform ]
May be empty, these are not always reported by efa.vrr.de.
None.
Class::Accessor(3pm)
$part->via does not work reliably.
Travel::Routing::DE::EFA(3pm), Class::Accessor(3pm).
Copyright (C) 2011-2014 by Daniel Friesel <derf@finalrewind.org>
0. You just DO WHAT THE FUCK YOU WANT TO.
To install Travel::Routing::DE::VRR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Travel::Routing::DE::VRR
CPAN shell
perl -MCPAN -e shell install Travel::Routing::DE::VRR
For more information on module installation, please visit the detailed CPAN module installation guide.