Travel::Status::DE::VRR - unofficial VRR departure monitor
use Travel::Status::DE::VRR;
my $status = Travel::Status::DE::VRR->new(
place => 'Essen', name => 'Helenenstr'
);
for my $d ($status->results) {
printf(
"%s %d %-5s %s\n",
$d->time, $d->platform, $d->line, $d->destination
);
}
version 1.02
Travel::Status::DE::VRR is an unofficial interface to the VRR departure monitor available at http://efa.vrr.de/vrr/XSLT_DM_REQUEST?language=de&itdLPxx_transpCompany=vrr&.
It reports all upcoming tram/bus/train departures at a given place.
Requests the departures as specified by opts and returns a new Travel::Status::DE::VRR object. Dies if the wrong opts were passed.
Arguments:
Name of the place/city
Type of the following name. poi means "point of interest". Defaults to stop (stop/station name).
address / poi / stop name to list departures for.
In case of en HTTP request or EFA error, returns a string describing it. If none occured, returns undef.
Returns a list of Travel::Status::DE::VRR::Line(3pm) objects, each one describing one line servicing the selected station.
Returns a list of Travel::Status::DE::VRR::Result(3pm) objects, each one describing one departure.
None.
Not all features of the web interface are supported.
efa-m(1), Travel::Status::DE::VRR::Result(3pm).
Copyright (C) 2011 by Daniel Friesel <derf@finalrewind.org>
This module is licensed under the same terms as Perl itself.