Unverified Commit 401eafc3 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

stationboard: link to HAFAS ÖBB backend for stops in austria

parent 7a5e5553
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1739,6 +1739,11 @@ sub handle_result {
		my $params = $self->req->params->clone;
		$params->param( hafas => not $params->param('hafas') );
		if ( $params->param('hafas') ) {
			if (    $data->{station_eva} >= 8100000
				and $data->{station_eva} < 8200000 )
			{
				$params->param( hafas => 'ÖBB' );
			}
			$api_link = '/' . $data->{station_eva} . '?' . $params->to_string;
			$api_text = 'Auf Nahverkehr wechseln';
			$api_icon = 'train';