summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-12-07 21:55:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-12-07 21:55:19 +0100
commitae695c817f92ae9be39afb0cef07fdd52c2d5393 (patch)
tree0696340b9bfa47727e7bab4cf2ec94668b8bc853 /index.pl
parent00fca1a3d819da7891d17bf6208a2e0de420d14c (diff)
add qos and delay messages to json output (moreinfo will be phased out for json/marudor)
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 261753d..c96994b 100644
--- a/index.pl
+++ b/index.pl
@@ -334,6 +334,16 @@ sub handle_request {
is_cancelled => $result->can('is_cancelled')
? $result->is_cancelled
: undef,
+ messages => {
+ delay => [
+ map { { timestamp => $_->[0], text => $_->[1] } }
+ $result->delay_messages
+ ],
+ qos => [
+ map { { timestamp => $_->[0], text => $_->[1] } }
+ $result->qos_messages
+ ],
+ },
moreinfo => $moreinfo,
delay => $delay,
additional_stops => [ $result->additional_stops ],