This commit is contained in:
Andreas Schildbach 2016-10-28 14:41:16 +02:00
parent e48a68a240
commit 6136ec7fb0
2 changed files with 4 additions and 0 deletions

View file

@ -52,6 +52,8 @@ public class GvhProvider extends AbstractEfaProvider {
final @Nullable String symbol, final @Nullable String name, final @Nullable String longName,
final @Nullable String trainType, final @Nullable String trainNum, final @Nullable String trainName) {
if ("0".equals(mot)) {
if ("RX".equals(trainType) && trainNum != null) // Express, Czech Republic
return new Line(id, network, Product.REGIONAL_TRAIN, "RX" + trainNum);
if ("S4".equals(trainNum))
return new Line(id, network, Product.SUBURBAN_TRAIN, "S4");
if (longName != null && longName.startsWith("Bus ") && name != null)

View file

@ -84,6 +84,8 @@ public class VrrProvider extends AbstractEfaProvider {
return new Line(id, network, Product.REGIONAL_TRAIN, symbol);
if ("NordWestBahn".equals(trainName) && symbol != null)
return new Line(id, network, Product.REGIONAL_TRAIN, symbol);
if ("MRB26".equals(trainNum) && trainType == null)
return new Line(id, network, Product.REGIONAL_TRAIN, trainNum);
if (trainType == null && "SEV7".equals(trainNum))
return new Line(id, network, Product.BUS, trainNum);