AbstractEfaProvider: 'RB' line

This commit is contained in:
Andreas Schildbach 2023-09-04 11:25:03 +02:00
parent a16e53952e
commit dad6f92556
2 changed files with 2 additions and 2 deletions

View file

@ -1051,6 +1051,8 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
return new Line(id, network, Product.REGIONAL_TRAIN, "REX" + trainNum);
if (("RB".equals(trainType) || "Regionalbahn".equals(trainName)) && trainNum != null)
return new Line(id, network, Product.REGIONAL_TRAIN, "RB" + trainNum);
if ("RB".equals(trainNum) && trainName == null)
return new Line(id, network, Product.REGIONAL_TRAIN, "RB");
if (trainType == null && trainNum != null && P_LINE_RB.matcher(trainNum).matches())
return new Line(id, network, Product.REGIONAL_TRAIN, trainNum);
if ("Abellio-Zug".equals(trainName))

View file

@ -83,8 +83,6 @@ public class NvbwProvider extends AbstractEfaProvider {
return new Line(id, network, null, "Zug");
if ("DB".equals(trainName) && trainNum == null)
return new Line(id, network, null, "DB");
if ("RB".equals(trainNum) && trainType == null)
return new Line(id, network, null, "RB");
} else if ("1".equals(mot)) {
if (symbol != null && symbol.equals(name)) {
final Matcher m = P_LINE_S_AVG_VBK.matcher(symbol);