AbstractEfaProvider: Handle mot 15 and 16 (IC/ICE/EC).

This commit is contained in:
Andreas Schildbach 2020-10-24 15:47:13 +02:00
parent 76743cd12a
commit 23a08407b9

View file

@ -1426,6 +1426,9 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
} else if ("13".equals(mot)) {
if (trainType == null && trainNum != null)
return new Line(id, network, Product.REGIONAL_TRAIN, trainNum);
} else if ("15".equals(mot) || "16".equals(mot)) {
if (trainType != null && trainNum != null)
return new Line(id, network, Product.HIGH_SPEED_TRAIN, trainType + trainNum);
} else if ("17".equals(mot)) {
if (trainNum == null && trainName != null && trainName.startsWith("Schienenersatz"))
return new Line(id, network, Product.BUS, "SEV");