NAME
Travel::Status::DE::HAFAS::Stop - Information about a HAFAS stop.
SYNOPSIS
# in journey mode
for my $stop ($journey->route) {
printf(
%5s -> %5s %s\n",
$stop->arr ? $stop->arr->strftime('%H:%M') : '--:--',
$stop->dep ? $stop->dep->strftime('%H:%M') : '--:--',
$stop->loc->name
);
}
VERSION
version 5.05
DESCRIPTION
Travel::Status::DE::HAFAS::Stop describes a Travel::Status::DE::HAFAS::Journey(3pm)'s stop at a given Travel::Status::DE::HAFAS::Location(3pm) with arrival/departure time, platform, etc.
METHODS
ACCESSORS
- $stop->loc
-
Travel::Status::DE::HAFAS::Location(3pm) instance describing stop name, EVA ID, et cetera.
- $stop->rt_arr
-
DateTime object for actual arrival.
- $stop->sched_arr
-
DateTime object for scheduled arrival.
- $stop->arr
-
DateTime object for actual or scheduled arrival.
- $stop->arr_delay
-
Arrival delay in minutes.
- $stop->arr_cancelled
-
Arrival is cancelled.
- $stop->rt_dep
-
DateTime object for actual departure.
- $stop->sched_dep
-
DateTime object for scheduled departure.
- $stop->dep
-
DateTIme object for actual or scheduled departure.
- $stop->dep_delay
-
Departure delay in minutes.
- $stop->dep_cancelled
-
Departure is cancelled.
- $stop->delay
-
Departure or arrival delay in minutes.
- $stop->direction
-
Direction signage from this stop on, undef if unchanged.
- $journey->messages
-
List of Travel::Status::DE::HAFAS::Message(3pm) instances related to this stop. These typically refer to delay reasons, platform changes, or changes in the line number / direction heading.
- $stop->rt_platform
-
Actual platform.
- $stop->sched_platform
-
Scheduled platform.
- $stop->platform
-
Actual or scheduled platform.
- $stop->is_changed_platform
-
True if real-time and scheduled platform disagree.
- $stop->is_additional
-
True if the stop is an unscheduled addition to the train's route.
- $stop->load
-
Expected utilization / passenger load from this stop on.
DIAGNOSTICS
None.
DEPENDENCIES
BUGS AND LIMITATIONS
None known.
SEE ALSO
Travel::Status::DE::HAFAS(3pm).
AUTHOR
Copyright (C) 2023 by Birte Kristina Friesel <derf@finalrewind.org>
LICENSE
This module is licensed under the same terms as Perl itself.