mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
NVBW: 'IR' lines
This commit is contained in:
parent
c605c53ffe
commit
8ca6f35208
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,7 @@ public class NvbwProvider extends AbstractEfaProvider {
|
|||
}
|
||||
|
||||
private static final Pattern P_LINE_S_AVG_VBK = Pattern.compile("(S\\d+) \\((?:AVG|VBK)\\)");
|
||||
private static final Pattern P_INTERREGIO = Pattern.compile("IR\\d*");
|
||||
|
||||
@Override
|
||||
protected Line parseLine(final @Nullable String id, final @Nullable String network, final @Nullable String mot,
|
||||
|
@ -66,6 +67,8 @@ public class NvbwProvider extends AbstractEfaProvider {
|
|||
return new Line(id, network, Product.HIGH_SPEED_TRAIN, "SC");
|
||||
if ("InterRegio".equals(longName) && symbol == null)
|
||||
return new Line(id, network, Product.REGIONAL_TRAIN, "IR");
|
||||
if (trainType == null && P_INTERREGIO.matcher(trainNum).matches())
|
||||
return new Line(id, network, Product.REGIONAL_TRAIN, trainNum);
|
||||
if ("REGIOBAHN".equals(trainName) && trainNum == null)
|
||||
return new Line(id, network, Product.REGIONAL_TRAIN, null);
|
||||
if ("Meridian".equals(trainName) && symbol != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue