AbstractEfaProvider: Unify handling of mot 13.

This commit is contained in:
Andreas Schildbach 2020-10-22 09:11:14 +02:00
parent e12aa6e684
commit 04f70e03b3
3 changed files with 1 additions and 16 deletions

View file

@ -1423,7 +1423,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
} else if ("11".equals(mot)) {
return new Line(id, network, null, ParserUtils.firstNotEmpty(symbol, name));
} else if ("13".equals(mot)) {
if (("S-Bahn".equals(trainName) || (longName != null && longName.startsWith("S-Bahn"))) && symbol != null)
if (symbol != null)
return new Line(id, network, Product.SUBURBAN_TRAIN, symbol);
} else if ("17".equals(mot)) {
if (trainNum == null && trainName != null && trainName.startsWith("Schienenersatz"))