From 0a15bea28b62777211496db77c558ec62c7da4e4 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 22 Mar 2025 13:24:21 +0100 Subject: Location: TO_JSON: Always provide route (lazy accessor) --- lib/Travel/Status/DE/DBRIS/Journey.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/Travel/Status/DE/DBRIS/Journey.pm b/lib/Travel/Status/DE/DBRIS/Journey.pm index 43f2607..1549e8a 100644 --- a/lib/Travel/Status/DE/DBRIS/Journey.pm +++ b/lib/Travel/Status/DE/DBRIS/Journey.pm @@ -78,6 +78,9 @@ sub messages { sub TO_JSON { my ($self) = @_; + # transform raw_route into route (lazy accessor) + $self->route; + my $ret = { %{$self} }; delete $ret->{strptime_obj}; -- cgit v1.2.3