mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 16:09:52 +00:00
Lines.
This commit is contained in:
parent
e48a68a240
commit
6136ec7fb0
2 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue