From be251c3275eb34844a99de7467d62291077875d3 Mon Sep 17 00:00:00 2001 From: Megan Slattery Date: Mon, 25 Sep 2023 15:15:05 +0100 Subject: [PATCH] Add Majadahonda station --- stations.csv | 3 ++- test_data.rb | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stations.csv b/stations.csv index 169f77eb..672b6ea9 100644 --- a/stations.csv +++ b/stations.csv @@ -64047,4 +64047,5 @@ id;name;slug;uic;uic8_sncf;latitude;longitude;parent_station_id;country;time_zon 68188;Le Bouscat Sainte-Germaine;le-bouscat-sainte-germaine;;87738096;44.87090;-0.61400;;FR;Europe/Paris;f;f;f;t;t;f;FRKTO;;t;;f;;f;;f;;f;;f;;f;;f;;f;;f;;f;;;;f;;f;;f;;f;;f;;f;f;;;;;;;;;;;;;;;;;;;;urn:trainline:public:nloc:csv68188; 68189;Andria Sud;andria-sud;8355025;;41.224651;16.314623;29245;IT;Europe/Rome;f;f;f;t;f;f;;;f;;f;;f;;f;;f;;f;;f;;f;;f;;f;8355025;t;;;;f;;f;;f;;f;;f;;f;f;;;;;;;;;;;;;;;;;;;;urn:trainline:public:nloc:csv68189; 68190;Ostarije;ostarije;7875111;;45.234444;15.296389;;HR;Europe/Zagreb;t;f;f;t;t;f;;;f;;f;7875111;f;;f;;f;;f;;f;;f;7875111;t;;f;;f;;;;f;;f;;f;;f;;f;;f;f;;;;;;;;;;;;;;;;;;;;urn:trainline:public:nloc:csv68190; -68191;Corato sud ospedale;corato-sud-ospedale;;;41.14550687319366;16.419894058269794;29255;IT;Europe/Rome;f;f;f;f;f;f;;;f;;f;;f;;f;;f;;f;;f;;f;;f;;f;;f;;;;f;;f;;f;;f;;f;;f;f;;;;;;;;;;;;;;;;;;;;urn:trainline:public:nloc:csv68191; \ No newline at end of file +68191;Corato sud ospedale;corato-sud-ospedale;;;41.14550687319366;16.419894058269794;29255;IT;Europe/Rome;f;f;f;f;f;f;;;f;;f;;f;;f;;f;;f;;f;;f;;f;;f;;f;;;;f;;f;;f;;f;;f;;f;f;;;;;;;;;;;;;;;;;;;;urn:trainline:public:nloc:csv68191; +68192;Majadahonda;majadahonda;7110007;;40.47441400551557;-3.846237484654251;;ES;Europe/Madrid;f;f;f;t;f;f;;;f;;f;;f;;f;;f;;f;;f;;f;;f;;f;;f;;;;f;;f;;f;;f;;f;;f;f;;;;;;;;;;;;;;;;;;;;urn:trainline:public:nloc:csv68192; \ No newline at end of file diff --git a/test_data.rb b/test_data.rb index 5949c86a..857cba7f 100644 --- a/test_data.rb +++ b/test_data.rb @@ -240,11 +240,13 @@ def test_localized_info_different_than_name end def test_suggestable_has_carrier + cercanias_stations = %w(68192) # Cercanias stations do not need a carrier useless_stations = [] SUGGESTABLE_STATIONS.each do |row| unless has_enabled_carrier(row) || CHILDREN[row["id"]].any? { |r| has_enabled_carrier(r) } || - (row["parent_station_id"] && has_enabled_carrier(STATIONS_BY_ID[row["parent_station_id"]])) + (row["parent_station_id"] && has_enabled_carrier(STATIONS_BY_ID[row["parent_station_id"]])) || + cercanias_stations.include?(row["id"]) useless_stations << row end end