From 830badd9e7413fc7fd4dc70e2e0219fa4642c954 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 27 Mar 2024 10:27:01 +0100 Subject: 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 --- lib/Travel/Status/DE/HAFAS/Journey.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/Travel/Status/DE/HAFAS/Journey.pm') 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. -- cgit v1.2.3