mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 16:40:30 +00:00
more lines
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@94 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
365164de29
commit
7c68269268
2 changed files with 156 additions and 8 deletions
|
@ -574,8 +574,15 @@ public final class BahnProvider implements NetworkProvider
|
|||
return "IEST" + number;
|
||||
if (type.equals("ES")) // Eurostar Italia
|
||||
return "IES" + number;
|
||||
if (type.equals("HOT")) // Spanien, Nachtzug?
|
||||
if (type.equals("ALS")) // Spanien
|
||||
return "IALS" + number;
|
||||
if (type.equals("ARC")) // Spanien
|
||||
return "IARC" + number;
|
||||
if (type.equals("TLG")) // Spanien
|
||||
return "ITLG" + number;
|
||||
if (type.equals("HOT")) // Spanien, Nacht
|
||||
return "IHOT" + number;
|
||||
|
||||
if (type.equals("R"))
|
||||
return "R" + number;
|
||||
if (type.equals("IR")) // InterRegio
|
||||
|
@ -706,12 +713,6 @@ public final class BahnProvider implements NetworkProvider
|
|||
return "RVEN" + number;
|
||||
if (type.equals("KD")) // Koleje Dolnośląskie
|
||||
return "RKD" + number;
|
||||
if (type.equals("ALS")) // Spanien
|
||||
return "RALS" + number;
|
||||
if (type.equals("TLG")) // Spanien
|
||||
return "RTLG" + number;
|
||||
if (type.equals("ARC")) // Spanien
|
||||
return "RARC" + number;
|
||||
if (type.equals("SKW")) // Polen
|
||||
return "RSKW" + number;
|
||||
if (type.equals("KM")) // Polen
|
||||
|
@ -728,6 +729,7 @@ public final class BahnProvider implements NetworkProvider
|
|||
return "REX" + number;
|
||||
if (type.equals("NZ")) // Norwegen
|
||||
return "RNZ" + number;
|
||||
|
||||
if (type.equals("S"))
|
||||
return "SS" + number;
|
||||
if (type.equals("BSB")) // Breisgau S-Bahn
|
||||
|
@ -738,14 +740,17 @@ public final class BahnProvider implements NetworkProvider
|
|||
return "SRSB" + number;
|
||||
if (type.equals("CAT")) // City Airport Train, Schweden
|
||||
return "SCAT" + number;
|
||||
|
||||
if (type.equals("U"))
|
||||
return "UU" + number;
|
||||
|
||||
if (type.equals("STR"))
|
||||
return "T" + number;
|
||||
if (type.equals("RT")) // RegioTram
|
||||
return "TRT" + number;
|
||||
if (type.equals("Schw")) // Schwebebahn, gilt als "Straßenbahn besonderer Bauart"
|
||||
return "TSchw" + number;
|
||||
|
||||
if (type.startsWith("Bus"))
|
||||
return "B" + type.substring(3) + number;
|
||||
if (type.startsWith("AST")) // Anruf-Sammel-Taxi
|
||||
|
@ -756,6 +761,7 @@ public final class BahnProvider implements NetworkProvider
|
|||
return "BRFB" + type.substring(3) + number;
|
||||
if (type.equals("RNV")) // Rhein-Neckar-Verkehr GmbH - TODO aufteilen in Tram/Bus/Fähre
|
||||
return "BRNV" + number;
|
||||
|
||||
if (type.equals("Fähre"))
|
||||
return "F" + number;
|
||||
if (type.equals("Fäh"))
|
||||
|
@ -764,6 +770,7 @@ public final class BahnProvider implements NetworkProvider
|
|||
return "FSchiff" + number;
|
||||
if (type.equals("KAT")) // z.B. Friedrichshafen <-> Konstanz
|
||||
return "FKAT" + number;
|
||||
|
||||
if (type.equals("ZahnR")) // Zahnradbahn, u.a. Zugspitzbahn
|
||||
return "RZahnR" + number;
|
||||
if (type.equals("Flug"))
|
||||
|
|
|
@ -190,18 +190,142 @@ public class OebbProvider implements NetworkProvider
|
|||
{
|
||||
final String ucType = type.toUpperCase();
|
||||
|
||||
if (ucType.equals("OEC"))
|
||||
if (ucType.equals("OEC")) // ÖBB-EuroCity
|
||||
return 'I';
|
||||
if (ucType.equals("OIC")) // ÖBB-InterCity
|
||||
return 'I';
|
||||
if (ucType.equals("EC")) // EuroCity
|
||||
return 'I';
|
||||
if (ucType.equals("IC")) // InterCity
|
||||
return 'I';
|
||||
if (ucType.equals("ICE")) // InterCityExpress
|
||||
return 'I';
|
||||
if (ucType.equals("X")) // Interconnex
|
||||
return 'I';
|
||||
if (ucType.equals("EN")) // EuroNight
|
||||
return 'I';
|
||||
if (ucType.equals("CNL")) // CityNightLine
|
||||
return 'I';
|
||||
if (ucType.equals("DNZ")) // Berlin-Saratov, Berlin-Moskva
|
||||
return 'I';
|
||||
if (ucType.equals("INT")) // Rußland
|
||||
return 'I';
|
||||
if (ucType.equals("D")) // Rußland
|
||||
return 'I';
|
||||
if (ucType.equals("RR")) // Finnland
|
||||
return 'I';
|
||||
if (ucType.equals("TLK")) // Tanie Linie Kolejowe (Polen)
|
||||
return 'I';
|
||||
if (ucType.equals("EE")) // Rumänien
|
||||
return 'I';
|
||||
if (ucType.equals("SC")) // Tschechien
|
||||
return 'I';
|
||||
if (ucType.equals("RJ")) // RailJet, Österreichische Bundesbahnen
|
||||
return 'I';
|
||||
if (ucType.equals("EST")) // Eurostar Frankreich
|
||||
return 'I';
|
||||
if (ucType.equals("ALS")) // Spanien
|
||||
return 'I';
|
||||
if (ucType.equals("ARC")) // Spanien
|
||||
return 'I';
|
||||
if (ucType.equals("TLG")) // Spanien, Madrid
|
||||
return 'I';
|
||||
if (ucType.equals("HOT")) // Spanien, Nacht
|
||||
return 'I';
|
||||
if (ucType.equals("AVE")) // Alta Velocidad Española, Spanien
|
||||
return 'I';
|
||||
if (ucType.equals("INZ")) // Schweden, Nacht
|
||||
return 'I';
|
||||
if (ucType.equals("OZ")) // Schweden, Oeresundzug
|
||||
return 'I';
|
||||
if (ucType.equals("X2")) // Schweden
|
||||
return 'I';
|
||||
if (ucType.equals("THA")) // Thalys
|
||||
return 'I';
|
||||
if (ucType.equals("TGV")) // Train à Grande Vitesse
|
||||
return 'I';
|
||||
if (ucType.equals("LYN")) // Dänemark
|
||||
return 'I';
|
||||
if (ucType.equals("ARZ")) // Frankreich, Nacht
|
||||
return 'I';
|
||||
if (ucType.equals("ES")) // Eurostar Italia
|
||||
return 'I';
|
||||
if (ucType.equals("ICN")) // Italien, Nacht
|
||||
return 'I';
|
||||
if (ucType.equals("UUU")) // Italien, Nacht
|
||||
return 'I';
|
||||
if (ucType.equals("RHI")) // ICE
|
||||
return 'I';
|
||||
if (ucType.equals("RHT")) // TGV
|
||||
return 'I';
|
||||
if (ucType.equals("TGD")) // TGV
|
||||
return 'I';
|
||||
if (ucType.equals("ECB")) // EC
|
||||
return 'I';
|
||||
if (ucType.equals("IRX")) // IC
|
||||
return 'I';
|
||||
if (ucType.equals("AIR"))
|
||||
return 'I';
|
||||
|
||||
if (ucType.equals("R"))
|
||||
return 'R';
|
||||
if (ucType.equals("REX"))
|
||||
return 'R';
|
||||
if (ucType.equals("ZUG"))
|
||||
return 'R';
|
||||
if (ucType.equals("EZ")) // Erlebniszug
|
||||
return 'R';
|
||||
if (ucType.equals("S2")) // Helsinki-Turku
|
||||
return 'R';
|
||||
if (ucType.equals("RB")) // RegionalBahn
|
||||
return 'R';
|
||||
if (ucType.equals("RE"))
|
||||
return 'R';
|
||||
if (ucType.equals("DPN"))
|
||||
return 'R';
|
||||
if (ucType.equals("VIA"))
|
||||
return 'R';
|
||||
if (ucType.equals("PCC")) // Polen
|
||||
return 'R';
|
||||
if (ucType.equals("KM")) // Polen
|
||||
return 'R';
|
||||
if (ucType.equals("SKM")) // Polen
|
||||
return 'R';
|
||||
if (ucType.equals("SKW")) // Polen
|
||||
return 'R';
|
||||
if (ucType.equals("WKD")) // Warszawska Kolej Dojazdowa, Polen
|
||||
return 'R';
|
||||
if (ucType.equals("IR")) // Polen
|
||||
return 'R';
|
||||
if (ucType.equals("OS")) // Chop-Cierna nas Tisou
|
||||
return 'R';
|
||||
if (ucType.equals("SP")) // Polen
|
||||
return 'R';
|
||||
if (ucType.equals("EX")) // Polen
|
||||
return 'R';
|
||||
if (ucType.equals("E")) // Budapest, Ungarn
|
||||
return 'R';
|
||||
if (ucType.equals("IP")) // Ozd, Ungarn
|
||||
return 'R';
|
||||
if (ucType.equals("ZR")) // Bratislava, Slovakai
|
||||
return 'R';
|
||||
if (ucType.equals("CAT")) // Stockholm-Arlanda, Arlanda Express
|
||||
return 'R';
|
||||
if (ucType.equals("RT")) // Deutschland
|
||||
return 'R';
|
||||
if (ucType.equals("IRE")) // Interregio Express
|
||||
return 'R';
|
||||
if (ucType.equals("N")) // Frankreich, Tours
|
||||
return 'R';
|
||||
if (ucType.equals("DPF")) // VX=Vogtland Express
|
||||
return 'R';
|
||||
|
||||
if (ucType.equals("S"))
|
||||
return 'S';
|
||||
if (ucType.equals("RSB")) // Schnellbahn Wien
|
||||
return 'S';
|
||||
if (ucType.equals("RER")) // Réseau Express Régional, Frankreich
|
||||
return 'S';
|
||||
|
||||
if (ucType.equals("U"))
|
||||
return 'U';
|
||||
|
@ -219,15 +343,32 @@ public class OebbProvider implements NetworkProvider
|
|||
return 'B';
|
||||
if (ucType.equals("ICB")) // ICBus
|
||||
return 'B';
|
||||
if (ucType.equals("FB")) // Polen
|
||||
return 'B';
|
||||
if (ucType.equals("BSV")) // Deutschland
|
||||
return 'B';
|
||||
if (ucType.equals("LT")) // Linien-Taxi
|
||||
return 'B';
|
||||
|
||||
if (ucType.equals("SCH"))
|
||||
return 'F';
|
||||
if (ucType.equals("AS")) // SyltShuttle
|
||||
return 'F';
|
||||
|
||||
if (ucType.equals("SB"))
|
||||
return 'C';
|
||||
if (ucType.equals("LIF"))
|
||||
return 'C';
|
||||
|
||||
if (ucType.equals("U70")) // U.K.
|
||||
return '?';
|
||||
if (ucType.equals("R84"))
|
||||
return '?';
|
||||
if (ucType.equals("S84"))
|
||||
return '?';
|
||||
if (ucType.equals("T84"))
|
||||
return '?';
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue