NAME
Travel::Status::DE::HAFAS::Stop - Information about a HAFAS stop.
SYNOPSIS
# in geoSearch mode
for my $stop ($status->results) {
printf(
"%5.1f km %8d %s\n",
$result->distance_m * 1e-3,
$result->eva, $result->name
);
}
VERSION
version 4.12
DESCRIPTION
Travel::Status::DE::HAFAS::Stop describes a HAFAS stop. It may be part of a journey or part of a geoSearch / locationSearch request.
Journey-, geoSearch- and locationSearch-specific accessors are annotated accordingly and return undef in other contexts.
METHODS
ACCESSORS
- $stop->name
-
Stop name, e.g. "Essen Hbf" or "Unter den Linden/B75, Tostedt".
- $stop->eva
-
EVA ID, e.g. 8000080.
- $stop->lat
-
Stop latitude (WGS-84)
- $stop->lon
-
Stop longitude (WGS-84)
- $stop->distance_m (geoSearch)
-
Distance in meters between the requested coordinates and this stop.
- $stop->weight
-
Weight / Relevance / Importance of this stop using an unknown metric. Higher values indicate more relevant stops.
- $stop->rt_arr (journey)
-
DateTime object for actual arrival.
- $stop->sched_arr (journey)
-
DateTime object for scheduled arrival.
- $stop->arr (journey)
-
DateTime object for actual or scheduled arrival.
- $stop->arr_delay (journey)
-
Arrival delay in minutes.
- $stop->arr_cancelled (journey)
-
Arrival is cancelled.
- $stop->rt_dep (journey)
-
DateTime object for actual departure.
- $stop->sched_dep (journey)
-
DateTime object for scheduled departure.
- $stop->dep (journey)
-
DateTIme object for actual or scheduled departure.
- $stop->dep_delay (journey)
-
Departure delay in minutes.
- $stop->dep_cancelled (journey)
-
Departure is cancelled.
- $stop->delay (journey)
-
Departure or arrival delay in minutes.
- $stop->direction (journey)
-
Direction signage from this stop on, undef if unchanged.
- $stop->rt_platform (journey)
-
Actual platform.
- $stop->sched_platform (journey)
-
Scheduled platform.
- $stop->platform (journey)
-
Actual or scheduled platform.
- $stop->is_changed_platform (journey)
-
True if real-time and scheduled platform disagree.
- $stop->load (journey)
-
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 Birthe Friesel <derf@finalrewind.org>
LICENSE
This module is licensed under the same terms as Perl itself.