summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.pl2
-rw-r--r--templates/infoscreen.html.ep18
2 files changed, 4 insertions, 16 deletions
diff --git a/index.pl b/index.pl
index 687804d..46f83dd 100644
--- a/index.pl
+++ b/index.pl
@@ -100,7 +100,7 @@ sub get_results {
elsif ( $backend eq 'aseag' ) {
$status = Travel::Status::DE::ASEAG->new(
stop => ( $city ? "${city} ${stop}" : $stop ),
- full_routes => 'after',
+ calculate_routes => 1,
);
}
else {
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index 4a4f309..1c0974f 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -46,17 +46,12 @@
% if ($departure->can('lineref') and $departure->lineref) {
%= $departure->lineref->route
% }
-% elsif ($departure->can('route_pre') and $departure->can('route_post')) {
-% if ($departure->route_pre) {
-%= ($departure->route_pre)[0]->name
-% }
-% if ($departure->route_post) {
-% ($departure->route_post)[-1]->name
-% }
+% else {
+%= $departure->destination
% }
</span> <!-- train-route -->
</div> <!-- mheader -->
-% if ($departure->can('route_pre')) {
+% if ($departure->isa('Travel::Status::DE::EFA::Result')) {
Fahrplan:
<table class="scheduled">
% for my $stop ($departure->route_pre) {
@@ -112,13 +107,6 @@
% elsif ($departure->can('lineref') and $departure->lineref) {
%= $departure->lineref->route
% }
-% elsif ($departure->can('route_timetable')) {
-% my @first_deps = ($departure->route_timetable)[0..2];
-% delete $first_deps[2] unless defined $first_deps[2];
-% delete $first_deps[1] unless defined $first_deps[1];
-% delete $first_deps[0] unless defined $first_deps[0];
-%= join(' - ', map { $_->[1] } @first_deps );
-% }
</span> <!-- route -->
<span class="dest">
%= $departure->destination