From 866866965ac959e0cf358c1849251ffe47651485 Mon Sep 17 00:00:00 2001 From: networkException Date: Mon, 9 Jun 2025 23:29:58 +0200 Subject: motis-m: Fix --json for trip lookup --- lib/Travel/Status/MOTIS/Trip.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Travel/Status/MOTIS/Trip.pm b/lib/Travel/Status/MOTIS/Trip.pm index 161b4f7..f9e14b4 100644 --- a/lib/Travel/Status/MOTIS/Trip.pm +++ b/lib/Travel/Status/MOTIS/Trip.pm @@ -165,8 +165,8 @@ sub stopovers { sub TO_JSON { my ($self) = @_; - # transform raw_route into route (lazy accessor) - $self->route; + # transform raw_stopovers into stopovers (lazy accessor) + $self->stopovers; # transform raw_polyline into polyline (lazy accessor) $self->polyline; -- cgit v1.2.3