Travel...E::VRR(3pm)

πŸ“¦
version 2.24 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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::VRR throws a Travel::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