---
name: "Travel::Routing::DE::VRR"
section: "3pm"
platform: "linux"
package: "libtravel-routing-de-vrr-perl"
version: "2.24-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Travel::Routing::DE::VRR"
---

# Travel::Routing::DE::VRR(3pm)

unofficial interface to the efa.vrr.de German itinerary service

## NAME

Travel::Routing::DE::VRR - unofficial interface to the efa.vrr.de German itinerary service

## SYNOPSIS

```
        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";
        }
```

## VERSION

version 2.24

## DESCRIPTION

**Travel::Routing::DE::VRR** is a client for the efa.vrr.de web interface. You pass it the start/stop of your journey, maybe a time and a date and more details, and it returns the up-to-date scheduled connections between those two stops.

## METHODS

- $efa = Travel::Routing::DE::VRR-\>new(*%opts*)

  Returns a new Travel::Routing::DE::VRR object and sets up its POST data via *%opts*.

  Calls Travel::Routing::DE::EFA-\>new with the appropriate **efa\_url**, all *%opts* are passed on. See [**Travel::Routing::DE::EFA**(3pm)](/Travel::Routing::DE::EFA/3pm.md) for valid parameters and methods

When encountering an error, Travel::Routing::DE::VRR throws a [**Travel::Routing::DE::EFA::Exception**(3pm)](/Travel::Routing::DE::EFA::Exception/3pm.md) object.

## DEPENDENCIES

- •

  [**Travel::Routing::DE::EFA**(3pm)](/Travel::Routing::DE::EFA/3pm.md)

- •

  [**LWP::UserAgent**(3pm)](/LWP::UserAgent/3pm.md)

- •

  [**XML::LibXML**(3pm)](/XML::LibXML/3pm.md)

## BUGS AND LIMITATIONS

None known.

## SEE ALSO

- •

  [**Travel::Routing::DE::EFA**(3pm)](/Travel::Routing::DE::EFA/3pm.md)

## AUTHOR

Copyright (C) 2009-2021 by Birte Kristina Friesel \<derf@finalrewind.org\>

## LICENSE

This program is licensed under the same terms as Perl itself.
