summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-06-23 18:46:12 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-06-23 18:46:12 +0200
commit12af0ffa862deb5a34c595eb0ad2e54c1bba5b65 (patch)
tree8d78282e6afebc25db580fcac13b5e6a7a619291 /lib/Travel/Status/DE/IRIS.pm
parentc2699b2e28714c564853eccc96e2609054238b76 (diff)
Handle Essen-Dellwig / Essen-Dellwig Ost as different stations
They're close, but they both have platforms 1/2. So treating them as the same (as the IRIS backend does) may lead to confusion
Diffstat (limited to 'lib/Travel/Status/DE/IRIS.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index 212bce5..420fc6a 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -455,10 +455,12 @@ sub get_station {
# @seen holds station IDs which were already seen during recursive
# 'meta' descent. This avoids infinite loops of 'meta' references.
- # As Norddeich and Norddeich Mole are illegaly coupled in the backend
- # (they are different stations with different departure times), we pre-seed
- # @seen with their eva IDs.
- my @seen = ( 8007768, 8004449 );
+ # Additionally, we use it to skip stations shat should not be referenced.
+ # This includes Norddeich / Norddeich Mole (different stations commonly used
+ # by identical trains with different departure times), and Essen-Dellwig /
+ # Essen-Dellwig Ost (different stations used by different trains, but with
+ # identical platform numbers).
+ my @seen = ( 8007768, 8004449, 8001903, 8001904 );
while ( @queue and $iter_depth < 12 ) {
my $station = shift(@queue);