diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-02 18:15:32 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-02 18:15:32 +0200 |
commit | 1ae5aa27f60db4d6f3d522bc2812e859f630413c (patch) | |
tree | 9b0f370587808430ac172cae8079895818fc5c66 /lib/Travel/Status/DE/HAFAS/Journey.pm | |
parent | 38071ce2ad25189ef7bbe14508e3d23e5a913001 (diff) |
Journey: TO_JSON: Handle route (Stop.pm objects)
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS/Journey.pm')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Journey.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index 7fa9014..e3c1c2a 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -420,6 +420,7 @@ sub TO_JSON { $ret->{$k} = $ret->{$k}->epoch; } } + $ret->{route} = [ map { $_->TO_JSON } $self->route ]; return $ret; } |