summaryrefslogtreecommitdiff
path: root/lib/Travel/Status
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-25 00:08:31 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-25 00:08:31 +0200
commit81882dafbb85adbc22cf26438b0188cfa75ce1bc (patch)
tree774ac25a717e57012d8db3f88d11ab5a5465d5b5 /lib/Travel/Status
parent435ca65a9263344bb2f11b883ecce6b6686b71b1 (diff)
also, comments
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index e1e7910..72d73d9 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -256,6 +256,10 @@ sub similar_stops {
my $service = $self->{active_service};
if ( $service and exists $hafas_instance{$service}{stopfinder} ) {
+
+ # we do not pass our constructor's language argument here,
+ # because most stopfinder services do not return any results
+ # for languages other than german ('d' aka the default)
my $sf = Travel::Status::DE::HAFAS::StopFinder->new(
url => $hafas_instance{$service}{stopfinder},
input => $self->{station},