mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 09:49:49 +00:00
Bremen, Bremerhaven & Oldenburg
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@638 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
a1b04662e6
commit
c9fe1daa86
10 changed files with 356 additions and 277 deletions
|
@ -1105,7 +1105,10 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
return new NearbyStationsResult(stations);
|
||||
}
|
||||
|
||||
private static final Pattern P_LINE_S = Pattern.compile("SN?\\d*");
|
||||
private static final Pattern P_LINE_SBAHN = Pattern.compile("SN?\\d*");
|
||||
private static final Pattern P_LINE_TRAM = Pattern.compile("STR\\w{0,5}");
|
||||
private static final Pattern P_LINE_BUS = Pattern.compile("BUS\\w{0,5}");
|
||||
private static final Pattern P_LINE_TAXI = Pattern.compile("TAX\\w{0,5}");
|
||||
|
||||
protected char normalizeType(final String type)
|
||||
{
|
||||
|
@ -1176,6 +1179,8 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
return 'I';
|
||||
if ("X2".equals(ucType)) // X2000 Neigezug, Schweden
|
||||
return 'I';
|
||||
if ("X".equals(ucType)) // InterConnex
|
||||
return 'I';
|
||||
if ("FYR".equals(ucType)) // Fyra, Amsterdam-Schiphol-Rotterdam
|
||||
return 'I';
|
||||
if ("FLUG".equals(ucType))
|
||||
|
@ -1222,6 +1227,104 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
return 'R';
|
||||
if ("MRB".equals(ucType)) // Mitteldeutsche Regiobahn
|
||||
return 'R';
|
||||
if ("ERB".equals(ucType)) // eurobahn (Keolis Deutschland)
|
||||
return 'R';
|
||||
if ("HLB".equals(ucType)) // Hessische Landesbahn
|
||||
return 'R';
|
||||
if ("VIA".equals(ucType))
|
||||
return 'R';
|
||||
if ("HSB".equals(ucType)) // Harzer Schmalspurbahnen
|
||||
return 'R';
|
||||
if ("OSB".equals(ucType)) // Ortenau-S-Bahn
|
||||
return 'R';
|
||||
if ("VBG".equals(ucType)) // Vogtlandbahn
|
||||
return 'R';
|
||||
if ("AKN".equals(ucType)) // AKN Eisenbahn AG
|
||||
return 'R';
|
||||
if ("OLA".equals(ucType)) // Ostseeland Verkehr
|
||||
return 'R';
|
||||
if ("UBB".equals(ucType)) // Usedomer Bäderbahn
|
||||
return 'R';
|
||||
if ("PEG".equals(ucType)) // Prignitzer Eisenbahn
|
||||
return 'R';
|
||||
if ("NWB".equals(ucType)) // NordWestBahn
|
||||
return 'R';
|
||||
if ("CAN".equals(ucType)) // cantus Verkehrsgesellschaft
|
||||
return 'R';
|
||||
if ("BRB".equals(ucType)) // ABELLIO Rail
|
||||
return 'R';
|
||||
if ("SBB".equals(ucType)) // Schweizerische Bundesbahnen
|
||||
return 'R';
|
||||
if ("VEC".equals(ucType)) // vectus Verkehrsgesellschaft
|
||||
return 'R';
|
||||
if ("TLX".equals(ucType)) // Trilex (Vogtlandbahn)
|
||||
return 'R';
|
||||
if ("HZL".equals(ucType)) // Hohenzollerische Landesbahn
|
||||
return 'R';
|
||||
if ("ABR".equals(ucType)) // Bayerische Regiobahn
|
||||
return 'R';
|
||||
if ("CB".equals(ucType)) // City Bahn Chemnitz
|
||||
return 'R';
|
||||
if ("WEG".equals(ucType)) // Württembergische Eisenbahn-Gesellschaft
|
||||
return 'R';
|
||||
if ("NEB".equals(ucType)) // Niederbarnimer Eisenbahn
|
||||
return 'R';
|
||||
if ("ME".equals(ucType)) // metronom Eisenbahngesellschaft
|
||||
return 'R';
|
||||
if ("MER".equals(ucType)) // metronom regional
|
||||
return 'R';
|
||||
if ("ALX".equals(ucType)) // Arriva-Länderbahn-Express
|
||||
return 'R';
|
||||
if ("EB".equals(ucType)) // Erfurter Bahn
|
||||
return 'R';
|
||||
if ("VEN".equals(ucType)) // Rhenus Veniro
|
||||
return 'R';
|
||||
if ("BOB".equals(ucType)) // Bayerische Oberlandbahn
|
||||
return 'R';
|
||||
if ("SBS".equals(ucType)) // Städtebahn Sachsen
|
||||
return 'R';
|
||||
if ("EVB".equals(ucType)) // Eisenbahnen und Verkehrsbetriebe Elbe-Weser
|
||||
return 'R';
|
||||
if ("STB".equals(ucType)) // Süd-Thüringen-Bahn
|
||||
return 'R';
|
||||
if ("AG".equals(ucType)) // Ingolstadt-Landshut
|
||||
return 'R';
|
||||
if ("PRE".equals(ucType)) // Pressnitztalbahn
|
||||
return 'R';
|
||||
if ("SHB".equals(ucType)) // Schleswig-Holstein-Bahn
|
||||
return 'R';
|
||||
if ("NOB".equals(ucType)) // Nord-Ostsee-Bahn
|
||||
return 'R';
|
||||
if ("RTB".equals(ucType)) // Rurtalbahn
|
||||
return 'R';
|
||||
if ("BLB".equals(ucType)) // Berchtesgadener Land Bahn
|
||||
return 'R';
|
||||
if ("NBE".equals(ucType)) // Nordbahn Eisenbahngesellschaft
|
||||
return 'R';
|
||||
if ("SOE".equals(ucType)) // Sächsisch-Oberlausitzer Eisenbahngesellschaft
|
||||
return 'R';
|
||||
if ("SDG".equals(ucType)) // Sächsische Dampfeisenbahngesellschaft
|
||||
return 'R';
|
||||
if ("VE".equals(ucType)) // Lutherstadt Wittenberg
|
||||
return 'R';
|
||||
if ("DAB".equals(ucType)) // Daadetalbahn
|
||||
return 'R';
|
||||
if ("WTB".equals(ucType)) // Wutachtalbahn e.V.
|
||||
return 'R';
|
||||
if ("BE".equals(ucType)) // Grensland-Express
|
||||
return 'R';
|
||||
if ("ARR".equals(ucType)) // Ostfriesland
|
||||
return 'R';
|
||||
if ("HTB".equals(ucType)) // Hörseltalbahn
|
||||
return 'R';
|
||||
if ("FEG".equals(ucType)) // Freiberger Eisenbahngesellschaft
|
||||
return 'R';
|
||||
if ("NEG".equals(ucType)) // Norddeutsche Eisenbahngesellschaft Niebüll
|
||||
return 'R';
|
||||
if ("RBG".equals(ucType)) // Regental Bahnbetriebs GmbH
|
||||
return 'R';
|
||||
if ("MBB".equals(ucType)) // Mecklenburgische Bäderbahn Molli
|
||||
return 'R';
|
||||
if ("ATZ".equals(ucType)) // Autotunnelzug
|
||||
return 'R';
|
||||
if ("CAT".equals(ucType)) // City Airport Train
|
||||
|
@ -1230,11 +1333,17 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
return 'R';
|
||||
if ("KD".equals(ucType)) // Koleje Dolnośląskie (Niederschlesische Eisenbahn)
|
||||
return 'R';
|
||||
if ("EX".equals(ucType)) // Polen
|
||||
return 'R';
|
||||
// if ("E".equals(normalizedType)) // Eilzug, stimmt wahrscheinlich nicht
|
||||
// return "R" + normalizedName;
|
||||
|
||||
// Suburban Trains
|
||||
if (P_LINE_S.matcher(ucType).matches()) // Generic (Night) S-Bahn
|
||||
if (P_LINE_SBAHN.matcher(ucType).matches()) // Generic (Night) S-Bahn
|
||||
return 'S';
|
||||
if ("BSB".equals(ucType)) // Breisgau S-Bahn
|
||||
return 'S';
|
||||
if ("SWE".equals(ucType)) // Südwestdeutsche Verkehrs-AG, Ortenau-S-Bahn
|
||||
return 'S';
|
||||
// if ("SPR".equals(normalizedType)) // Sprinter, Niederlande
|
||||
// return "S" + normalizedName;
|
||||
|
@ -1250,7 +1359,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
// return "U" + normalizedName;
|
||||
|
||||
// Tram
|
||||
if ("STR".equals(ucType)) // Generic Tram
|
||||
if (P_LINE_TRAM.matcher(ucType).matches()) // Generic Tram
|
||||
return 'T';
|
||||
if ("TRAM".equals(ucType))
|
||||
return 'T';
|
||||
|
@ -1260,7 +1369,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
// return "T" + normalizedName;
|
||||
|
||||
// Bus
|
||||
if ("BUS".equals(ucType)) // Generic Bus
|
||||
if (P_LINE_BUS.matcher(ucType).matches()) // Generic Bus
|
||||
return 'B';
|
||||
if ("NFB".equals(ucType)) // Niederflur-Bus
|
||||
return 'B';
|
||||
|
@ -1276,14 +1385,20 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
return 'B';
|
||||
if ("AST".equals(ucType)) // Anruf-Sammel-Taxi
|
||||
return 'B';
|
||||
if ("RFB".equals(ucType)) // Rufbus
|
||||
return 'B';
|
||||
if ("RUF".equals(ucType)) // Rufbus
|
||||
return 'B';
|
||||
if (P_LINE_TAXI.matcher(ucType).matches()) // Generic Taxi
|
||||
return 'B';
|
||||
if ("RFT".equals(ucType)) // Ruftaxi
|
||||
return 'B';
|
||||
if ("LT".equals(ucType)) // Linien-Taxi
|
||||
return 'B';
|
||||
if ("ALT".equals(ucType)) // Anruf-Linien-Taxi
|
||||
return 'B';
|
||||
// if ("N".equals(normalizedType)) // Nachtbus
|
||||
// return "B" + normalizedName;
|
||||
// if ("Taxi".equals(normalizedType)) // Taxi
|
||||
// return "B" + normalizedName;
|
||||
// if ("TX".equals(normalizedType)) // Taxi
|
||||
// return "B" + normalizedName;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue