diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-27 10:27:01 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-27 10:27:01 +0100 |
commit | 830badd9e7413fc7fd4dc70e2e0219fa4642c954 (patch) | |
tree | 7c3357c3ecba14d41a1660f4658e5c0a778f2012 /lib/Travel/Status/DE/HAFAS/Journey.pm | |
parent | d45e7823ac80aa400c62e31ff5b3442804e41eba (diff) |
Provide $journey->product->line_id in a line-colors compatible format
See https://github.com/Traewelling/line-colors/blob/main/line-colors.csv
Closes #9
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS/Journey.pm')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Journey.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index 6a36c22..f7206e8 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -17,6 +17,7 @@ Travel::Status::DE::HAFAS::Journey->mk_ro_accessors( qw(datetime sched_datetime rt_datetime is_additional is_cancelled is_partially_cancelled station station_eva platform sched_platform rt_platform operator + product id name type type_long class number line line_no load delay route_end route_start origin destination direction) ); @@ -487,6 +488,13 @@ True if the journey was cancelled, false otherwise. True if part of the journey was cancelled, false otherwise. +=item $journey->product + +Travel::Status::DE::HAFAS::Product(3pm) instance describing the product (mode +of transport, line number / ID, operator, ...) associated with this journey. +Note that journeys may be associated with multiple products -- see also +C<< $journey->route >> and C<< $stop->product >>. + =item $journey->rt_platform (station only) Actual arrival/departure platform. |