summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-01-16 20:32:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-01-16 20:32:32 +0100
commitf9ef51bdb6f6e2de74f699442f748db5c565d1f3 (patch)
tree1dca0cd885b607f6123ca49656eccb804b391fdd /index.pl
parent14966d5a6e71d7394fa05b4cf722a5b1512c547a (diff)
show previous route as well
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 7bf6e5f..c502d3e 100644
--- a/index.pl
+++ b/index.pl
@@ -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(