AbstractEfaProvider: priorize symbol for suburban trains

This commit is contained in:
Andreas Schildbach 2023-02-28 19:58:50 +01:00
parent d55e4027f1
commit aa5415dd14

View file

@ -1389,7 +1389,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
if (trainName != null && trainType == null && trainNum == null)
return new Line(id, network, null, trainName);
} else if ("1".equals(mot)) {
if (symbol != null && P_LINE_S.matcher(symbol).matches())
if (symbol != null)
return new Line(id, network, Product.SUBURBAN_TRAIN, symbol);
if (name != null && P_LINE_S.matcher(name).matches())
return new Line(id, network, Product.SUBURBAN_TRAIN, name);