summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Status/DE/IRIS.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm8
1 files changed, 8 insertions, 0 deletions
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,
{