mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-12 19:28:49 +00:00
AbstractEfaProvider: 'BSB' lines again.
This commit is contained in:
parent
509fa449cc
commit
967f9b8320
2 changed files with 2 additions and 4 deletions
|
@ -1327,8 +1327,8 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
|
|||
return new Line(id, network, Product.SUBURBAN_TRAIN, trainNum);
|
||||
if ("BSB-Zug".equals(trainName) && trainNum == null)
|
||||
return new Line(id, network, Product.SUBURBAN_TRAIN, "BSB");
|
||||
if ("BSB-Zug".equals(longName))
|
||||
return new Line(id, network, Product.SUBURBAN_TRAIN, "BSB");
|
||||
if (longName != null && longName.startsWith("BSB-Zug"))
|
||||
return new Line(id, network, Product.SUBURBAN_TRAIN, "BSB" + Strings.nullToEmpty(trainNum));
|
||||
if ("RSB".equals(trainType)) // Regionalschnellbahn, Wien
|
||||
return new Line(id, network, Product.SUBURBAN_TRAIN, "RSB" + trainNum);
|
||||
if ("RER".equals(trainName) && symbol != null && symbol.length() == 1) // Réseau Express Régional
|
||||
|
|
|
@ -50,8 +50,6 @@ public class VagfrProvider extends AbstractEfaProvider {
|
|||
if ("0".equals(mot)) {
|
||||
if (("N".equals(trainType) || "Nahverkehrszug".equals(trainName)) && trainNum != null)
|
||||
return new Line(id, network, Product.REGIONAL_TRAIN, "N" + trainNum);
|
||||
if (longName != null && longName.startsWith("BSB-Zug ") && trainNum != null)
|
||||
return new Line(id, network, Product.SUBURBAN_TRAIN, "BSB" + trainNum);
|
||||
}
|
||||
|
||||
return super.parseLine(id, network, mot, symbol, name, longName, trainType, trainNum, trainName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue