mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 06:08:52 +00:00
AbstractEfaProvider: priorize symbol for suburban trains
This commit is contained in:
parent
d55e4027f1
commit
aa5415dd14
1 changed files with 1 additions and 1 deletions
|
@ -1389,7 +1389,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
|
||||||
if (trainName != null && trainType == null && trainNum == null)
|
if (trainName != null && trainType == null && trainNum == null)
|
||||||
return new Line(id, network, null, trainName);
|
return new Line(id, network, null, trainName);
|
||||||
} else if ("1".equals(mot)) {
|
} else if ("1".equals(mot)) {
|
||||||
if (symbol != null && P_LINE_S.matcher(symbol).matches())
|
if (symbol != null)
|
||||||
return new Line(id, network, Product.SUBURBAN_TRAIN, symbol);
|
return new Line(id, network, Product.SUBURBAN_TRAIN, symbol);
|
||||||
if (name != null && P_LINE_S.matcher(name).matches())
|
if (name != null && P_LINE_S.matcher(name).matches())
|
||||||
return new Line(id, network, Product.SUBURBAN_TRAIN, name);
|
return new Line(id, network, Product.SUBURBAN_TRAIN, name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue