summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/HAFAS/Services.pm.PL
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-18 11:07:13 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-18 11:07:13 +0200
commit5008b2dda31ae20a7f5a48fb7c3a38adda36e8fe (patch)
treef54cc3dc3e3bb4848f83596c8141ad43558667f1 /lib/Travel/Status/DE/HAFAS/Services.pm.PL
parentb08f091529925607a86d54ecdd457914c38cdc08 (diff)
Services: Add coverage regions
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS/Services.pm.PL')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Services.pm.PL2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Services.pm.PL b/lib/Travel/Status/DE/HAFAS/Services.pm.PL
index 638bd53..5836a94 100644
--- a/lib/Travel/Status/DE/HAFAS/Services.pm.PL
+++ b/lib/Travel/Status/DE/HAFAS/Services.pm.PL
@@ -26,6 +26,8 @@ sub load_instance {
client => $data->{options}{client},
auth => $data->{options}{auth},
},
+ coverage =>
+ { regions => $data->{coverage}{realtimeCoverage}{region} // [] },
#coverage => {
# area => $data->{coverage}{realtimeCoverage}{area},