mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 13:59:50 +00:00
line
This commit is contained in:
parent
750e44b1be
commit
b07758de29
1 changed files with 2 additions and 1 deletions
|
@ -647,6 +647,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
private static final Pattern P_LINE_S = Pattern.compile("^(?:%)?(S\\d+)");
|
private static final Pattern P_LINE_S = Pattern.compile("^(?:%)?(S\\d+)");
|
||||||
private static final Pattern P_LINE_NUMBER = Pattern.compile("\\d+");
|
private static final Pattern P_LINE_NUMBER = Pattern.compile("\\d+");
|
||||||
private static final Pattern P_LINE_Y = Pattern.compile("\\d+Y");
|
private static final Pattern P_LINE_Y = Pattern.compile("\\d+Y");
|
||||||
|
private static final Pattern P_LINE_SEV = Pattern.compile("SEV.*");
|
||||||
|
|
||||||
protected String parseLine(final String mot, final String name, final String longName, final String noTrainName)
|
protected String parseLine(final String mot, final String name, final String longName, final String noTrainName)
|
||||||
{
|
{
|
||||||
|
@ -1206,7 +1207,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
|
|
||||||
if (type.equals("BUS"))
|
if (type.equals("BUS"))
|
||||||
return 'B' + str;
|
return 'B' + str;
|
||||||
if ("SEV-Bus".equals(type))
|
if (P_LINE_SEV.matcher(type).matches())
|
||||||
return 'B' + str;
|
return 'B' + str;
|
||||||
if ("Bex".equals(type)) // Bayern Express
|
if ("Bex".equals(type)) // Bayern Express
|
||||||
return 'B' + str;
|
return 'B' + str;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue