summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2025-06-09 23:29:58 +0200
committerBirte Friesel <derf@chaosdorf.de>2025-06-17 18:02:09 +0200
commit866866965ac959e0cf358c1849251ffe47651485 (patch)
tree37b56399e83c205bdfbdae0aa03ed96bc468b82b /lib
parentd7a9946aa12807da1a2a1c1dd7f31de94f1691bc (diff)
motis-m: Fix --json for trip lookup
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/MOTIS/Trip.pm4
1 files changed, 2 insertions, 2 deletions
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;