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

HAFAS: filter out border stations

parent d75ae5eb
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -170,7 +170,12 @@ sub get_route_timestamps_p {
					}
				}
				my $iris_stations = join( '|', $opt{train}->route );
				my $hafas_stations = join( '|', @station_list );

				# borders (Gr" as in "Grenze") are only returned by HAFAS.
				# They are not stations.
				my $hafas_stations
				  = join( '|', grep { $_ !~ m{(\(Gr\)|\)Gr)$} } @station_list );

				if ( $iris_stations eq $hafas_stations
					or index( $hafas_stations, $iris_stations ) != -1 )
				{