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 2.01
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.
Shortcut for $departure->stop_indicator, see there.
If the results method of Travel::Status::DE::URA(3pm) was called with calculate_routes => true: Returns a list of up to num_stops (defaults to 3) stops considered interesting (usually of major importance in the transit area). Each stop is a Travel::Status::DE::URA::Stop(3pm) object. Note that the importance is determined heuristically based on the stop name, so it is not always accurate.
Returns an empty list if calculate_routes was false.
If the results method of Travel::Status::DE::URA(3pm) was called with calculate_routes => true: Returns a list containing all stops after the requested one. Each stop is a Travel::Status::DE::URA::Stop(3pm) object. Returns an empty list otherwise.
Same as route_pre, but contains the stops before the requested one.
The stop (name, not object) belonging to this departure.
The stop ID belonging to this departure.
The indicator for this departure at the corresponding stop, usually describes a platform or sub-stop number. undef if the stop does not have such a distinction.
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), Travel::Status::DE::URA::Stop(3pm).
Copyright (C) 2013-2016 by Birte Kristina Friesel <derf@finalrewind.org>
This module is licensed under the same terms as Perl itself.