AbstractEfaProvider: Match more mot='13'.

This commit is contained in:
Andreas Schildbach 2021-02-06 23:44:50 +01:00
parent 7c1fd06971
commit 779cb9aa7c

View file

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