Travel::Status::DE::URA::Result - Information about a single departure received by Travel::Status::DE::URA
for my $departure ($status->results) { printf( "At %s: %s to %s (in %d minutes)", $departure->time, $departure->line, $departure->destination, $departure->countdown ); }
version 0.04
Travel::Status::DE::URA::Result describes a single departure as obtained by Travel::Status::DE::URA. It contains information about the time, line number and destination.
Time in minutes from the time Travel::Status::DE::URA was instantiated until the bus will depart.
Time in seconds from the time Travel::Status::DE::URA was instantiated until the bus will depart.
Departure date (DD.MM.YYYY)
DateTime object holding the departure date and time.
Destination name.
The name of the line.
The number of the line.
If the results method of Travel::Status::DE::URA(3pm) was called with full_routes => true: Returns a list of arrayrefs describing the entire route. I.e. ([$time1, $stop1], [$time2, $stop2], ...). The times are DateTime::Duration(3pm) objects, the stops are only names, not IDs (subject to change). Returns an empty list otherwise.
([$time1, $stop1], [$time2, $stop2], ...)
The stop belonging to this departure.
The stop ID belonging to this departure.
Departure time (HH:MM:SS).
Vehicle type for this departure. At the moment, this always returns "Bus". This option exists for compatibility with other Travel::Status libraries.
Returns a new Travel::Status::DE::URA::Result object. You should not need to call this.
Allows the object data to be serialized to JSON.
None.
Unknown.
Travel::Status::DE::URA(3pm).
Copyright (C) 2013 by Daniel Friesel <derf@finalrewind.org>
This module is licensed under the same terms as Perl itself.
To install Travel::Status::DE::URA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Travel::Status::DE::URA
CPAN shell
perl -MCPAN -e shell install Travel::Status::DE::URA
For more information on module installation, please visit the detailed CPAN module installation guide.