summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-01-26 09:59:45 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-01-26 09:59:45 +0100
commitce6237b9fb7f068b2ffaa866a096ffbdc0046870 (patch)
tree339c2f07c7dd3ea3341e98c4ac6ec6998d4b941b /lib/Travelynx.pm
parent32733fcd95c7c42b1a1f526adf9a978f8f507305 (diff)
status API: nextStops -> intermediateStops; documentation
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm6
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}