Travel...E::VRR(3pm)
π Travel::Routing::DE::VRR β the vibe β¨
ok so bestie, welcome to the perl manpage for Travel::Routing::DE::VRR, which lives in the User Contributed Perl Documentation section, manual page Travel...E::VRR(3pm). it's an unofficial interface to the efa.vrr.de German itinerary service and honestly? it's giving public transport main character energy ππ
β¨ SYNOPSIS β¨
look at her go, no cap:
use Travel::Routing::DE::VRR;
my $efa = Travel::Routing::DE::VRR->new(
origin => [ 'Essen', 'HBf' ],
destination => [ 'Duisburg', 'HBf' ],
);
for my $route ( $efa->routes ) {
for my $part ( $route->parts ) {
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,
);
}
print "\n\n";
}
like, you literally just tell it where you're going and it spills the whole itinerary. periodt. π«Ά
πΈ VERSION πΈ
version 2.24 β that's the one, bestie, don't @ me.
π DESCRIPTION π
So Travel::Routing::DE::VRR is a client for the efa.vrr.de web interface. You hand it the start/stop of your journey β maybe a time and a date too, maybe even more details if you're feeling extra β and it gives you back the up-to-date scheduled connections between those two stops. it's literally the plug for "when does my train leave" πβ¨
π METHODS π
$efa = Travel::Routing::DE::VRR->new(%opts)
Returns a brand new Travel::Routing::DE::VRR object and sets up its POST data via %opts. it's giving "get you a constructor that does everything" energy.
It calls Travel::Routing::DE::EFA->new with the appropriate efa_url, and all %opts are passed on. So for the valid parameters and methods, go check Travel::Routing::DE::EFA(3pm) β that's where the real tea is π
heads up bestie: when it hits an error,Travel::Routing::DE::VRRthrows aTravel::Routing::DE::EFA::Exception(3pm)object. so wrap it or catch it, iykyk π
π¦ DEPENDENCIES π¦
the squad it rolls with:
π BUGS AND LIMITATIONS π
None known. not a single one. flawless. iconic. we love to see it π₯ (ok but fr fr, that's literally what it says β None known.)
π SEE ALSO π
π AUTHOR π
Copyright (C) 2009-2021 by Birte Kristina Friesel <derf@finalrewind.org>
π LICENSE π
This program is licensed under the same terms as Perl itself. simple as that, bestie π
and that's the whole page, no notes π this was perl v5.36.0, dated 2023-11-27, from the Travel...E::VRR(3pm) manual β mwah, go catch your train πΈβ¨
π¦ where this page comes from
- debian trixie: libtravel-routing-de-vrr-perl 2.24-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtravel-routing-de-vrr-perl 2.24-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtravel-routing-de-vrr-perl 2.24-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtravel-routing-de-vrr-perl 2.24-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms