NAME
Travel::Status::DE::EFA::Stop - Information about a stop (station) contained in a Travel::Status::DE::EFA::Result's route
SYNOPSIS
for my $stop ($departure->route_post) {
printf(
"%s -> %s : %40s %s\n",
$stop->arr_time // q{ }, $stop->dep_time // q{ },
$stop->name, $stop->platform
);
}
VERSION
version 1.24
DESCRIPTION
Travel::Status::DE::EFA::Stop describes a single stop of a departure's route. It is solely based on the respective departure's schedule; delays or changed platforms are not taken into account.
METHODS
ACCESSORS
- $stop->arr_date
-
arrival date (DD.MM.YYYY). undef if this is the first scheduled stop.
- $stop->arr_time
-
arrival time (HH:MM). undef if this is the first scheduled stop.
- $stop->dep_date
-
departure date (DD.MM.YYYY). undef if this is the final scehduled stop.
- $stop->dep_time
-
departure time (HH:MM). undef if this is the final scehduled stop.
- $stop->name
-
stop name with city prefix ("City Stop", for instance "Essen Rüttenscheider Stern").
- $stop->name_suf
-
stop name without city prefix, for instance "Rüttenscheider Stern".
- $stop->platform
-
Platform name/number if available, empty string otherwise.
INTERNAL
- $stop = Travel::Status::DE::EFA::Stop->new(%data)
-
Returns a new Travel::Status::DE::EFA::Stop object. You should not need to call this.
- $stop->TO_JSON
-
Allows the object data to be serialized to JSON.
DIAGNOSTICS
None.
DEPENDENCIES
BUGS AND LIMITATIONS
None known.
SEE ALSO
Travel::Status::DE::EFA(3pm).
AUTHOR
Copyright (C) 2015 by Birte Kristina Friesel <derf@finalrewind.org>
LICENSE
This module is licensed under the same terms as Perl itself.