summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-09-26 18:18:34 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-09-26 18:18:34 +0200
commitb53be55b626603add954c903812df5360f7f22f0 (patch)
treee74c4c463d4f6c3c8a8846e345ad689fad6ce764 /lib/Travel
parente201b13f9f00271d8d3705b9bbef4a39064ad6de (diff)
route output: store and show occupancy data, if available
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/EFA/Departure.pm1
-rw-r--r--lib/Travel/Status/DE/EFA/Stop.pm1
2 files changed, 2 insertions, 0 deletions
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)
);