mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-06 15:18:49 +00:00
AbstractEfaProvider: Match more mot='14', mot='15' and mot='16'.
This commit is contained in:
parent
779cb9aa7c
commit
1199492365
1 changed files with 2 additions and 2 deletions
|
@ -1424,8 +1424,8 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
|
|||
if (trainNum != null)
|
||||
return new Line(id, network, Product.REGIONAL_TRAIN, Strings.nullToEmpty(trainType) + trainNum);
|
||||
} else if ("14".equals(mot) || "15".equals(mot) || "16".equals(mot)) {
|
||||
if (trainType != null && trainNum != null)
|
||||
return new Line(id, network, Product.HIGH_SPEED_TRAIN, trainType + trainNum);
|
||||
if (trainType != null || trainNum != null)
|
||||
return new Line(id, network, Product.HIGH_SPEED_TRAIN, Strings.nullToEmpty(trainType) + Strings.nullToEmpty(trainNum));
|
||||
} else if ("17".equals(mot)) {
|
||||
if (trainNum == null && trainName != null && trainName.startsWith("Schienenersatz"))
|
||||
return new Line(id, network, Product.BUS, "SEV");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue