mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 14:09:50 +00:00
lines that follow pattern BusW/540
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@828 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
442cab8fe8
commit
28fc8bdd36
3 changed files with 6 additions and 9 deletions
|
@ -1749,11 +1749,17 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
}
|
||||
}
|
||||
|
||||
private static final Pattern P_LINE_BUS_SPECIAL = Pattern.compile("Bus([A-Z]/[\\dA-Z]+)");
|
||||
|
||||
protected Line normalizeLine(final String line)
|
||||
{
|
||||
if (line == null || line.length() == 0)
|
||||
return null;
|
||||
|
||||
final Matcher mBusSpecial = P_LINE_BUS_SPECIAL.matcher(line);
|
||||
if (mBusSpecial.matches())
|
||||
return newLine('B' + mBusSpecial.group(1));
|
||||
|
||||
final Matcher m = P_NORMALIZE_LINE.matcher(line);
|
||||
if (m.matches())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue