NAME
Travel::Status::DE::VRR::Result - Information about a single departure received by Travel::Status::DE::VRR
SYNOPSIS
for my $departure ($status->results) {
printf(
"At %s: %s to %s from platform %s\n",
$departure->time, $departure->line, $departure->destination,
$departure->platform
);
}
VERSION
version 1.00
DESCRIPTION
Travel::Status::DE::VRR::Result describes a single departure as obtained by Travel::Status::DE::VRR. It contains information about the time, platform, line number and destination.
METHODS
ACCESSORS
"Actual" in the description means that the delay (if available) is already included in the calculation, "Scheduled" means it isn't.
- $departure->countdown
-
Actual time in minutes from now until the tram/bus/train will depart.
If delay information is available, it is already included.
- $departure->date
-
Actual departure date (DD.MM.YYYY).
- $departure->delay
-
Expected delay from scheduled departure time in minutes.
Note that this is only available for DB trains, in other cases it will always return 0.
- $departure->destination
-
Destination name.
- $departure->info
-
Additional information related to the departure (string). If departures for an address were requested, this is the stop name, otherwise it may be recent news related to the line's schedule. If no information is available, returns an empty string.
- $departure->line
-
The name/number of the line.
- $departure->lineref
-
Travel::Status::DE::VRR::Line(3pm) object describing the departing line in detail.
- $departure->platform
-
Departure platform number.
- $departure->platform_db
-
true if the platform number is operated by DB ("Gleis x"), false ("Bstg. x") otherwise.
Unfortunately, there is no distinction between tram and bus platforms yet, which also may have the same numbers.
- $departure->sched_date
-
Scheduled departure date (DD.MM.YYYY).
- $departure->sched_time
-
Scheduled departure time (HH:MM).
- $departure->time
-
Actual departure time (HH:MM).
- $departure->type
-
Type of the departure. Note that efa.vrr.de sometimes puts bogus data in this field. See "DEPARTURE TYPES".
INTERNAL
- $departure = Travel::Status::DE::VRR::Result->new(%data)
-
Returns a new Travel::Status::DE::VRR::Result object. You should not need to call this.
DEPARTURE TYPES
The following are known so far:
Abellio-Zug
Eurocity
Intercity-Express
NE (NachtExpress / night bus)
Niederflurbus
R-Bahn (RE / RegionalExpress)
S-Bahn
SB (Schnellbus)
Straßenbahn
U-Bahn
DIAGNOSTICS
None.
DEPENDENCIES
BUGS AND LIMITATIONS
$result->type
may contain bogus data. This comes from the efa.vrr.de interface.
SEE ALSO
Travel::Status::DE::VRR(3pm).
AUTHOR
Copyright (C) 2011 by Daniel Friesel <derf@finalrewind.org>
LICENSE
This module is licensed under the same terms as Perl itself.