diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-01-16 20:32:32 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-01-16 20:32:32 +0100 |
commit | f9ef51bdb6f6e2de74f699442f748db5c565d1f3 (patch) | |
tree | 1dca0cd885b607f6123ca49656eccb804b391fdd /index.pl | |
parent | 14966d5a6e71d7394fa05b4cf722a5b1512c547a (diff) |
show previous route as well
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -797,6 +797,13 @@ sub handle_request { train_no => $result->train_no, via => [ $result->route_interesting(3) ], scheduled_route => [ $result->sched_route ], + route_pre => [ $result->route_pre ], + route_pre_diff => [ + $self->json_route_diff( + [ $result->route_pre ], + [ $result->sched_route_pre ] + ) + ], route_post => [ $result->route_post ], route_post_diff => [ $self->json_route_diff( |