summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/EFA/Result.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-06-25 08:52:26 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-06-25 08:52:26 +0200
commit2cc7db6de55f116f5e5b859ee9b5265e77d7f6d5 (patch)
treeae466775592cfc8289416fa7e08881b3dc7c6019 /lib/Travel/Status/DE/EFA/Result.pm
parent9ca81cecd65a9726ff689d5baf90e71e99e512d4 (diff)
update route_interesting for yesterday's changes
(partially still FIXME cause of encapsulation issues)
Diffstat (limited to 'lib/Travel/Status/DE/EFA/Result.pm')
-rw-r--r--lib/Travel/Status/DE/EFA/Result.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Travel/Status/DE/EFA/Result.pm b/lib/Travel/Status/DE/EFA/Result.pm
index 24c7b88..36bf052 100644
--- a/lib/Travel/Status/DE/EFA/Result.pm
+++ b/lib/Travel/Status/DE/EFA/Result.pm
@@ -52,7 +52,7 @@ sub route_interesting {
for my $stop (@via) {
if (
- $stop->{stop_suf} =~ m{ Bf | Hbf | Flughafen | Hauptbahnhof
+ $stop->name_suf =~ m{ Bf | Hbf | Flughafen | Hauptbahnhof
| Krankenhaus | Klinik | (?: S $ ) }ox
)
{
@@ -85,9 +85,10 @@ sub route_interesting {
while ( @via_show < $max_parts and @via_main ) {
my $stop = shift(@via_main);
- if ( $stop ~~ \@via_show or $stop == $last_stop ) {
- next;
- }
+ # FIXME cannot smartmatch $stop since it became an object
+# if ( $stop ~~ \@via_show or $stop == $last_stop ) {
+# next;
+# }
push( @via_show, $stop );
}
}