This commit is contained in:
Andreas Schildbach 2013-08-23 10:58:09 +02:00
parent b63b261f34
commit b2195a74d4
2 changed files with 3 additions and 6 deletions

View file

@ -210,6 +210,9 @@ public class PlProvider extends AbstractHafasProvider
if ("REG".equals(ucType))
return 'R';
if ("IRB".equals(ucType)) // interREGIO Bus
return 'B';
if ("FRE".equals(ucType))
return 'F';

View file

@ -116,17 +116,11 @@ public class TflProvider extends AbstractEfaProvider
else if ("London Overground".equals(trainName) || "=LO".equals(trainType))
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))
{
if ("London Overground".equals(trainName) || "=LO".equals(trainType))
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);