summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-10-19 10:29:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-10-19 10:29:45 +0200
commit2aad0dfc2d50e8d7da5988ab73b314f19506aa86 (patch)
treebb54299005c52db8b870996e8033ce5e60ffad43 /lib/Travel/Status/DE/IRIS.pm
parent583234d23beb1d94f2949df7c2d4e8cee3acaa1c (diff)
Ignore invalid / useless related subway(?) stations
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,
{