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

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

Describes one connection between two points, without interchanges

## NAME

Travel::Routing::DE::VRR::Route::Part - Describes one connection between two points, without interchanges

## SYNOPSIS

```
        for my $part ( $route->parts ) {
                if ( $part->extra ) {
                        say join( "\n", $part->extra );
                }
                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,
                );
        }
```

## VERSION

version 2.01

## DESCRIPTION

**Travel::Routing::DE::VRR::Route::Part** holds one specific connection (without interchanges) between two points.  It specifies the start/stop point and time, the train line and its destination, and optional additional data.

It is usually obtained by a call to [*Travel::Routing::DE::VRR::Route*(3pm)](/Travel::Routing::DE::VRR::Route/3pm.md)'s **parts** method.

## METHODS

### ACCESSORS

"Actual" in the description means that the delay (if available) is already included in the calculation, "Scheduled" means it isn't.

- $part-\>arrival\_stop

  arrival stop (city name plus station name)

- $part-\>arrival\_platform

  arrival platform (either "Gleis x" or "Bstg. x")

- $part-\>arrival\_stop\_and\_platform

  "stop: platform" concatenation

- $part-\>arrival\_date

  Actual arrival date in DD.MM.YYYY format

- $part-\>arrival\_time

  Actual arrival time in HH:MM format

- $part-\>arrival\_sdate

  Scheduled arrival date in DD.MM.YYYY format

- $part-\>arrival\_stime

  Scheduled arrival time in HH:MM format

- $part-\>delay

  delay in minutes, 0 if unknown

- $part-\>departure\_stop

  departure stop (city name plus station name)

- $part-\>departure\_platform

  departure platform (either "Gleis x" or "Bstg. x")

- $part-\>departure\_stop\_and\_platform

  "stop: platform" concatenation

- $part-\>departure\_date

  Actual departure date in DD.MM.YYYY format

- $part-\>departure\_time

  Actual departure time in HH:MM format

- $part-\>departure\_sdate

  Scheduled departure date in DD.MM.YYYY format

- $part-\>departure\_stime

  Scheduled departure time in HH:MM format

- $part-\>extra

  Additional information about the connection.  Returns a list of newline-terminated strings

- $part-\>train\_destination

  destination of the line providing the connection

- $part-\>train\_line

  name / number of the line

- $part-\>via

  List of stops passed between departure\_stop and arrival\_stop, as `"[ "DD.MM.YYYY", "HH:MM", stop, platform ]"` hashrefs.

  May be empty, these are not always reported by efa.vrr.de.

## DIAGNOSTICS

None.

## DEPENDENCIES

- •

  [*Class::Accessor*(3pm)](/Class::Accessor/3pm.md)

## BUGS AND LIMITATIONS

`$part`-\>via does not work reliably.

## SEE ALSO

[*Travel::Routing::DE::VRR*(3pm)](/Travel::Routing::DE::VRR/3pm.md), [*Class::Accessor*(3pm)](/Class::Accessor/3pm.md).

## AUTHOR

Copyright (C) 2011 by Daniel Friesel \<derf@finalrewind.org\>

## LICENSE

```
  0. You just DO WHAT THE FUCK YOU WANT TO.
```
