summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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;