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 ? $stop->arr->strftime('%H:%M') : q{--:--},
$stop->dep ? $stop->dep->strftime('%H:%M') : q{--:--},
$stop->name, $stop->platform
);
}
VERSION
version 2.00
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
-
DateTime(3pm) object holding arrival date and time. undef if this is the first scheduled stop.
- $stop->dep
-
DateTime(3pm) object holding departure date and time. undef if this is the final scheduled 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-2023 by Birte Kristina Friesel <derf@finalrewind.org>
LICENSE
This module is licensed under the same terms as Perl itself.