diff options
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -440,6 +440,10 @@ sub handle_request { delay => $delay, additional_stops => [ $result->additional_stops ], canceled_stops => [ $result->canceled_stops ], + replaced_by => $result->can('replaced_by') + ? [ map { $_->type . q{ } . $_->train_no } $result->replaced_by ] : [], + replacement_for => $result->can('replacement_for') + ? [ map { $_->type . q{ } . $_->train_no } $result->replacement_for ] : [], } ); } |