diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-12-07 21:55:19 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-12-07 21:55:19 +0100 |
commit | ae695c817f92ae9be39afb0cef07fdd52c2d5393 (patch) | |
tree | 0696340b9bfa47727e7bab4cf2ec94668b8bc853 | |
parent | 00fca1a3d819da7891d17bf6208a2e0de420d14c (diff) |
add qos and delay messages to json output (moreinfo will be phased out for json/marudor)
-rw-r--r-- | index.pl | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 ], |