summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.pl7
-rw-r--r--templates/infoscreen.html.ep5
2 files changed, 8 insertions, 4 deletions
diff --git a/index.pl b/index.pl
index b0fd756..a13c7d1 100644
--- a/index.pl
+++ b/index.pl
@@ -67,9 +67,10 @@ sub get_results {
}
else {
$status = Travel::Status::DE::VRR->new(
- place => $city,
- name => $stop,
- timeout => 3,
+ place => $city,
+ name => $stop,
+ timeout => 3,
+ full_routes => 1,
);
}
$results = [ [ $status->results ], $status->errstr ];
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index 1fdada3..acf5140 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -38,7 +38,10 @@
%= $departure->line
</span> <!-- line -->
<span class="route">
-% if ($departure->can('lineref') and $departure->lineref) {
+% if ($departure->can('route_interesting') and $departure->route_interesting) {
+%= join(' - ', map { $_->{stop_suf} } ($departure->route_interesting));
+% }
+% elsif ($departure->can('lineref') and $departure->lineref) {
%= $departure->lineref->route
% }
% elsif ($departure->can('route_timetable')) {