The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Travel::Status::DE::HAFAS::Product - Information about a HAFAS product associated with a journey.

SYNOPSIS

VERSION

version 6.03

DESCRIPTION

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.

METHODS

ACCESSORS

$product->class

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.

$product->line_id

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.

$product->line_no

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.

$product->name

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.

$product->number

Trip number (e.g. train number), or undef if it is unknown.

$product->type

Type of this product, e.g. "S" for S-Bahn, "RE" for Regional Express or "STR" for tram / Straßenbahn.

$product->type_long

Long type of this product, e.g. "S-Bahn" or "Regional-Express".

$product->operator

The operator responsible for this product. Returns undef if the backend does not provide an operator.

DIAGNOSTICS

None.

DEPENDENCIES

Class::Accessor(3pm)

BUGS AND LIMITATIONS

None known.

SEE ALSO

Travel::Status::DE::HAFAS(3pm).

AUTHOR

Copyright (C) 2024 by Birte Kristina Friesel <derf@finalrewind.org>

LICENSE

This module is licensed under the same terms as Perl itself.