From ce6237b9fb7f068b2ffaa866a096ffbdc0046870 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 26 Jan 2020 09:59:45 +0100 Subject: status API: nextStops -> intermediateStops; documentation --- lib/Travelynx.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 96b45be..66cac2e 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -3205,8 +3205,8 @@ sub startup { no => $status->{train_no}, id => $status->{train_id}, }, - actionTime => $status->{timestamp}->epoch, - nextStops => [], + actionTime => $status->{timestamp}->epoch, + intermediateStops => [], }; for my $stop ( @{ $status->{route_after} // [] } ) { @@ -3215,7 +3215,7 @@ sub startup { last; } push( - @{ $ret->{nextStops} }, + @{ $ret->{intermediateStops} }, { name => $stop->[0], scheduledArrival => $stop->[1]{sched_arr} -- cgit v1.2.3