AbstractEfaProvider: Handle mot 13 'Ersatzverkehr'.

This commit is contained in:
Andreas Schildbach 2020-10-26 11:51:58 +01:00
parent a1c8b1caa1
commit 25c10a16fe

View file

@ -1424,6 +1424,8 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
if ("Schulbus".equals(trainName) && symbol != null) if ("Schulbus".equals(trainName) && symbol != null)
return new Line(id, network, Product.BUS, symbol); return new Line(id, network, Product.BUS, symbol);
} else if ("13".equals(mot)) { } else if ("13".equals(mot)) {
if ("Ersatzverkehr".equals(trainName) && trainType == null)
return new Line(id, network, Product.BUS, "SEV");
if (trainType == null && trainNum != null) if (trainType == null && trainNum != null)
return new Line(id, network, Product.REGIONAL_TRAIN, trainNum); return new Line(id, network, Product.REGIONAL_TRAIN, trainNum);
} else if ("15".equals(mot) || "16".equals(mot)) { } else if ("15".equals(mot) || "16".equals(mot)) {