summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-11-19 21:58:25 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-11-19 21:58:25 +0100
commita187abe014ee0d7dcd9228d72b20206414fb8ce5 (patch)
treeff039d915a3940d4adf0f4b0de8cae4aad725091 /lib/Travel/Status/DE/IRIS.pm
parenta8ebed120dc83195127eaf9d23372d39f2a51490 (diff)
Parse "hi" (arrival_hidden/departure_hidden) attributes
Diffstat (limited to 'lib/Travel/Status/DE/IRIS.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index 3c07e8f..43b5313 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -585,9 +585,8 @@ sub add_result {
$data{route_pre} = $e_ar->getAttribute('ppth');
$data{route_start} = $e_ar->getAttribute('pde');
$data{transfer} = $e_ar->getAttribute('tra');
+ $data{arrival_hidden} = $e_ar->getAttribute('hi');
$data{arrival_wing_ids} = $e_ar->getAttribute('wings');
-
- #$data{unk_ar_hi} = $e_ar->getAttribute('hi');
}
if ($e_dp) {
@@ -597,9 +596,8 @@ sub add_result {
$data{route_post} = $e_dp->getAttribute('ppth');
$data{route_end} = $e_dp->getAttribute('pde');
$data{transfer} = $e_dp->getAttribute('tra');
+ $data{departure_hidden} = $e_dp->getAttribute('hi');
$data{departure_wing_ids} = $e_dp->getAttribute('wings');
-
- #$data{unk_dp_hi} = $e_dp->getAttribute('hi');
}
if ( $data{arrival_wing_ids} ) {
@@ -817,6 +815,7 @@ sub parse_realtime {
sched_route_pre => $e_ar->getAttribute('ppth'),
status => $e_ar->getAttribute('cs'),
status_since => $e_ar->getAttribute('clt'),
+ arrival_hidden => $e_ar->getAttribute('hi'),
# TODO ps='a' -> rerouted and normally unscheduled train?
);
@@ -829,6 +828,7 @@ sub parse_realtime {
route_post => $e_dp->getAttribute('cpth'),
sched_route_post => $e_dp->getAttribute('ppth'),
status => $e_dp->getAttribute('cs'),
+ departure_hidden => $e_dp->getAttribute('hi'),
);
}