Travel::Status::DE::HAFAS::Product - Information about a HAFAS product associated with a journey.
version 6.03
Travel::Status::DE::HAFAS::Product describes a product (e.g. train or bus) associated with a Travel::Status::DE::HAFAS::Journey(3pm) or one of its stops.
An integer identifying the the mode of transport class. Semantics depend on backend See Travel::Status::DE::HAFAS(3pm)'s $hafas->get_active_service method.
$hafas->get_active_service
Line identifier, or undef if it is unknown. This is a backend-specific identifier, e.g. "7-vrr010-17" for VRR U17. The format is compatible with https://github.com/Traewelling/line-colors.
Line number, or undef if it is unknown. The line identifier may be a single number such as "11" (underground train line U 11), a single word (e.g. "AIR") or a combination (e.g. "SB16"). May also provide line numbers of IC/ICE services.
Trip or line name, either in a format like "Bus SB16" (Bus line SB16), "RE 42" (RegionalExpress train 42) or "IC 2901" (InterCity train 2901, no line information). May contain extraneous whitespace characters. Note that this accessor does not return line information for DB IC/ICE/EC services, even if it is available. Use line_no for those.
Trip number (e.g. train number), or undef if it is unknown.
Type of this product, e.g. "S" for S-Bahn, "RE" for Regional Express or "STR" for tram / Straßenbahn.
Long type of this product, e.g. "S-Bahn" or "Regional-Express".
The operator responsible for this product. Returns undef if the backend does not provide an operator.
None.
None known.
Travel::Status::DE::HAFAS(3pm).
Copyright (C) 2024 by Birte Kristina Friesel <derf@finalrewind.org>
This module is licensed under the same terms as Perl itself.
To install Travel::Status::DE::DeutscheBahn, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Travel::Status::DE::DeutscheBahn
CPAN shell
perl -MCPAN -e shell install Travel::Status::DE::DeutscheBahn
For more information on module installation, please visit the detailed CPAN module installation guide.