summaryrefslogtreecommitdiff
path: root/lib/Travel/Status
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm1
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;
}