From 81882dafbb85adbc22cf26438b0188cfa75ce1bc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 25 Sep 2015 00:08:31 +0200 Subject: also, comments --- lib/Travel/Status/DE/HAFAS.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Travel/Status/DE') 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}, -- cgit v1.2.3