summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-08-19 12:43:43 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-08-19 12:43:43 +0200
commitb85e8a1e04b2021843f7fb11337bc5a298635b7b (patch)
tree67db7a85306b8a0d2f124a949f503459d0da6677 /lib/Travelynx.pm
parent85022709d75940a3f84cdbe462f9b261b38fc69e (diff)
API: Support HAFAS checkin (via journeyID)
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index e5978d4..8437686 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -527,7 +527,8 @@ sub startup {
my ($journey) = @_;
my $found;
for my $stop ( $journey->route ) {
- if ( $stop->eva == $station ) {
+ if ( $stop->name eq $station or $stop->eva == $station )
+ {
$found = $stop;
last;
}