From 12af0ffa862deb5a34c595eb0ad2e54c1bba5b65 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 23 Jun 2022 18:46:12 +0200 Subject: 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 --- lib/Travel/Status/DE/IRIS.pm | 10 ++++++---- 1 file 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); -- cgit v1.2.3