summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/HAFAS
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-18 23:13:59 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-18 23:13:59 +0200
commit02fa51f0fe82f8490c376e5e279367d57d15e42a (patch)
treeaf2385129289a9ff46cd23ba89513b752bafd25e /lib/Travel/Status/DE/HAFAS
parent5008b2dda31ae20a7f5a48fb7c3a38adda36e8fe (diff)
Services: Include coverage area (GeoJSON)
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Services.pm.PL6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Services.pm.PL b/lib/Travel/Status/DE/HAFAS/Services.pm.PL
index 5836a94..936c156 100644
--- a/lib/Travel/Status/DE/HAFAS/Services.pm.PL
+++ b/lib/Travel/Status/DE/HAFAS/Services.pm.PL
@@ -26,8 +26,10 @@ sub load_instance {
client => $data->{options}{client},
auth => $data->{options}{auth},
},
- coverage =>
- { regions => $data->{coverage}{realtimeCoverage}{region} // [] },
+ coverage => {
+ area => $data->{coverage}{realtimeCoverage}{area},
+ regions => $data->{coverage}{realtimeCoverage}{region} // []
+ },
#coverage => {
# area => $data->{coverage}{realtimeCoverage}{area},