diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-10-19 10:29:45 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-10-19 10:29:45 +0200 |
commit | 2aad0dfc2d50e8d7da5988ab73b314f19506aa86 (patch) | |
tree | bb54299005c52db8b870996e8033ce5e60ffad43 /lib/Travel/Status | |
parent | 583234d23beb1d94f2949df7c2d4e8cee3acaa1c (diff) |
Ignore invalid / useless related subway(?) stations
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r-- | lib/Travel/Status/DE/IRIS.pm | 8 |
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, { |