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.09
DESCRIPTION
Travel::Status::DE::HAFAS::Stop describes a HAFAS stop. It may be part of a journey or part of a geoSearch request.
geoSearch-specific accessors are annotated with "(geoSearch)" and return undef for non-geoSearch stops.
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.
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.