From 2a9ca113cf5b83d2cadc4814be24a4deeae22d6d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 10 Oct 2015 12:17:51 +0200 Subject: hafas backend: use 'city stop', not 'stop, city' for less confusion --- index.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.pl') diff --git a/index.pl b/index.pl index 46f83dd..81217b0 100644 --- a/index.pl +++ b/index.pl @@ -92,7 +92,7 @@ sub get_results { my $status; if ( $backend eq 'hafas' ) { $status = Travel::Status::DE::HAFAS->new( - station => "${stop}, ${city}", + station => ( $city ? "${city} ${stop}" : $stop ), excluded_mots => [qw[ice ic_ec d regio]], service => $sub_backend, ); -- cgit v1.2.3