From b53be55b626603add954c903812df5360f7f22f0 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 26 Sep 2024 18:18:34 +0200 Subject: route output: store and show occupancy data, if available --- lib/Travel/Status/DE/EFA/Departure.pm | 1 + lib/Travel/Status/DE/EFA/Stop.pm | 1 + 2 files changed, 2 insertions(+) (limited to 'lib/Travel/Status/DE/EFA') diff --git a/lib/Travel/Status/DE/EFA/Departure.pm b/lib/Travel/Status/DE/EFA/Departure.pm index b5775a8..79fa85a 100644 --- a/lib/Travel/Status/DE/EFA/Departure.pm +++ b/lib/Travel/Status/DE/EFA/Departure.pm @@ -155,6 +155,7 @@ sub parse_route { full_name => $stop->{name}, place => $stop->{place}, name => $stop->{nameWO}, + occupancy => $stop->{occupancy}, platform => $ref->{platform} || $stop->{platformName} || undef, ) ); diff --git a/lib/Travel/Status/DE/EFA/Stop.pm b/lib/Travel/Status/DE/EFA/Stop.pm index 1df8cc8..5c404b9 100644 --- a/lib/Travel/Status/DE/EFA/Stop.pm +++ b/lib/Travel/Status/DE/EFA/Stop.pm @@ -11,6 +11,7 @@ our $VERSION = '2.02'; Travel::Status::DE::EFA::Stop->mk_ro_accessors( qw(sched_arr rt_arr arr sched_dep rt_dep dep + occupancy place name full_name id latlon platform niveau) ); -- cgit v1.2.3