mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 00:09:55 +00:00
Lines
This commit is contained in:
parent
b63b261f34
commit
b2195a74d4
2 changed files with 3 additions and 6 deletions
|
@ -210,6 +210,9 @@ public class PlProvider extends AbstractHafasProvider
|
||||||
if ("REG".equals(ucType))
|
if ("REG".equals(ucType))
|
||||||
return 'R';
|
return 'R';
|
||||||
|
|
||||||
|
if ("IRB".equals(ucType)) // interREGIO Bus
|
||||||
|
return 'B';
|
||||||
|
|
||||||
if ("FRE".equals(ucType))
|
if ("FRE".equals(ucType))
|
||||||
return 'F';
|
return 'F';
|
||||||
|
|
||||||
|
|
|
@ -116,17 +116,11 @@ public class TflProvider extends AbstractEfaProvider
|
||||||
|
|
||||||
else if ("London Overground".equals(trainName) || "=LO".equals(trainType))
|
else if ("London Overground".equals(trainName) || "=LO".equals(trainType))
|
||||||
return "SLO" + trainNum;
|
return "SLO" + trainNum;
|
||||||
|
|
||||||
throw new IllegalStateException("cannot normalize mot='" + mot + "' symbol='" + symbol + "' name='" + name + "' long='" + longName
|
|
||||||
+ "' trainType='" + trainType + "' trainNum='" + trainNum + "' trainName='" + trainName + "'");
|
|
||||||
}
|
}
|
||||||
else if ("3".equals(mot))
|
else if ("3".equals(mot))
|
||||||
{
|
{
|
||||||
if ("London Overground".equals(trainName) || "=LO".equals(trainType))
|
if ("London Overground".equals(trainName) || "=LO".equals(trainType))
|
||||||
return "SLO" + (trainNum != null ? trainNum : "");
|
return "SLO" + (trainNum != null ? trainNum : "");
|
||||||
|
|
||||||
throw new IllegalStateException("cannot normalize mot='" + mot + "' symbol='" + symbol + "' name='" + name + "' long='" + longName
|
|
||||||
+ "' trainType='" + trainType + "' trainNum='" + trainNum + "' trainName='" + trainName + "'");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.parseLine(mot, symbol, name, longName, trainType, trainNum, trainName);
|
return super.parseLine(mot, symbol, name, longName, trainType, trainNum, trainName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue