mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 21:29:51 +00:00
Lines
This commit is contained in:
parent
34b032b11d
commit
a9e52a5e60
4 changed files with 9 additions and 1 deletions
|
@ -1099,6 +1099,8 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
return "R" + symbol;
|
return "R" + symbol;
|
||||||
if ("Westfalenbahn".equals(trainName))
|
if ("Westfalenbahn".equals(trainName))
|
||||||
return 'R' + symbol;
|
return 'R' + symbol;
|
||||||
|
if ("Chiemseebahn".equals(trainName))
|
||||||
|
return 'R' + symbol;
|
||||||
if ("R".equals(trainType) || "Regionalzug".equals(trainName))
|
if ("R".equals(trainType) || "Regionalzug".equals(trainName))
|
||||||
return "RR" + trainNum;
|
return "RR" + trainNum;
|
||||||
if (trainType == null && trainNum != null && P_LINE_R.matcher(trainNum).matches())
|
if (trainType == null && trainNum != null && P_LINE_R.matcher(trainNum).matches())
|
||||||
|
@ -1293,6 +1295,8 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
if ("RT".equals(trainType) || "RegioTram".equals(trainName))
|
if ("RT".equals(trainType) || "RegioTram".equals(trainName))
|
||||||
return "TRT" + trainNum;
|
return "TRT" + trainNum;
|
||||||
|
|
||||||
|
if ("Bus".equals(trainType))
|
||||||
|
return "B" + trainNum;
|
||||||
if ("SEV".equals(trainType) || "SEV".equals(trainNum) || "SEV".equals(symbol) || "Ersatzverkehr".equals(trainName))
|
if ("SEV".equals(trainType) || "SEV".equals(trainNum) || "SEV".equals(symbol) || "Ersatzverkehr".equals(trainName))
|
||||||
return "BSEV";
|
return "BSEV";
|
||||||
if ("Bus replacement".equals(trainName)) // GB
|
if ("Bus replacement".equals(trainName)) // GB
|
||||||
|
|
|
@ -2658,6 +2658,8 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
// Suburban Trains
|
// Suburban Trains
|
||||||
if (P_LINE_SBAHN.matcher(ucType).matches()) // Generic (Night) S-Bahn
|
if (P_LINE_SBAHN.matcher(ucType).matches()) // Generic (Night) S-Bahn
|
||||||
return 'S';
|
return 'S';
|
||||||
|
if ("S-BAHN".equals(ucType))
|
||||||
|
return 'S';
|
||||||
if ("BSB".equals(ucType)) // Breisgau S-Bahn
|
if ("BSB".equals(ucType)) // Breisgau S-Bahn
|
||||||
return 'S';
|
return 'S';
|
||||||
if ("SWE".equals(ucType)) // Südwestdeutsche Verkehrs-AG, Ortenau-S-Bahn
|
if ("SWE".equals(ucType)) // Südwestdeutsche Verkehrs-AG, Ortenau-S-Bahn
|
||||||
|
|
|
@ -193,7 +193,7 @@ public class DsbProvider extends AbstractHafasProvider
|
||||||
|
|
||||||
if ("BYBUS".equals(ucType))
|
if ("BYBUS".equals(ucType))
|
||||||
return 'B';
|
return 'B';
|
||||||
if ("X-BUS".equals(ucType))
|
if ("X-BUS".equals(ucType) || "X BUS".equals(ucType))
|
||||||
return 'B';
|
return 'B';
|
||||||
if ("HV-BUS".equals(ucType)) // Havnebus
|
if ("HV-BUS".equals(ucType)) // Havnebus
|
||||||
return 'B';
|
return 'B';
|
||||||
|
|
|
@ -301,6 +301,8 @@ public class ZvvProvider extends AbstractHafasProvider
|
||||||
|
|
||||||
if ("UNB".equals(ucType))
|
if ("UNB".equals(ucType))
|
||||||
return '?';
|
return '?';
|
||||||
|
if ("UUU".equals(ucType))
|
||||||
|
return '?';
|
||||||
if ("???".equals(ucType))
|
if ("???".equals(ucType))
|
||||||
return '?';
|
return '?';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue