NAME
Travel::Status::DE::EFA::Trip - Information about an individual public transit trip
SYNOPSIS
printf( "%s %s -> %s\n", $trip->type, $trip->line // q{}, $trip->dest_name );
for my $stop ( $trip->route ) {
...;
}
VERSION
version 3.03
DESCRIPTION
Travel::Status::DE::EFA::Trip describes a single trip / journey of a public transport line.
METHODS
ACCESSORS
Most accessors return undef if the corresponding data is not available.
- $trip->operator
-
Operator name.
- $trip->product
-
Product name.
- $trip->product_class
-
Product class.
- $trip->name
-
Trip or line name.
- $trip->line
-
Line identifier. Note that this is not necessarily numeric.
- $trip->number
-
Trip/journey number.
- $trip->type
-
Transport / vehicle type, e.g. "RE" or "Bus".
- $trip->id
-
Unique(?) trip ID
- $trip->dest_name
-
Name of the trip's destination stop
- $trip->dest_id
-
ID of the trip's destination stop
- $trip->route
-
List of Travel::Status::DE::EFA::Stop(3pm) objects describing the route of this trip.
Note: The EFA API requires a stop to be specified when requesting trip details. The stops returned by this accessor appear to be limited to stops after the requested stop; earlier ones may be missing.
INTERNAL
- $trip = Travel::Status::DE::EFA::Trip->new(%data)
-
Returns a new Travel::Status::DE::EFA::Trip object. You should not need to call this.
- $trip->TO_JSON
-
Allows the object data to be serialized to JSON.
DIAGNOSTICS
None.
DEPENDENCIES
BUGS AND LIMITATIONS
This module is a Work in Progress. Its API may change between minor versions.
SEE ALSO
Travel::Status::DE::EFA(3pm).
AUTHOR
Copyright (C) 2024 by Birte Kristina Friesel <derf@finalrewind.org>
LICENSE
This module is licensed under the same terms as Perl itself.