diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-01-26 09:59:45 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-01-26 09:59:45 +0100 |
commit | ce6237b9fb7f068b2ffaa866a096ffbdc0046870 (patch) | |
tree | 339c2f07c7dd3ea3341e98c4ac6ec6998d4b941b /lib/Travelynx.pm | |
parent | 32733fcd95c7c42b1a1f526adf9a978f8f507305 (diff) |
status API: nextStops -> intermediateStops; documentation
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-x | lib/Travelynx.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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} |