From 2aad0dfc2d50e8d7da5988ab73b314f19506aa86 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 19 Oct 2019 10:29:45 +0200 Subject: Ignore invalid / useless related subway(?) stations --- lib/Travel/Status/DE/IRIS.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm index aa4ffb6..ddc53f6 100644 --- a/lib/Travel/Status/DE/IRIS.pm +++ b/lib/Travel/Status/DE/IRIS.pm @@ -259,6 +259,14 @@ sub get_station { next; } + if ( $station_node->getAttribute('ds100') =~ m{ ^ D \d+ $ }x ) { + + # This is an invalid DS100 code, at least from DB perspective. + # So far it seems to refer to subway stations which do not have + # IRIS departures. + next; + } + push( @ret, { -- cgit v1.2.3