mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 11:29:49 +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
|
@ -567,7 +567,6 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
return 0;
|
||||
}
|
||||
|
||||
private static final Pattern P_LINE_BUS_SPECIAL = Pattern.compile("Bus([A-Z]/[\\dA-Z]+)");
|
||||
private static final Pattern P_LINE_RUSSIA = Pattern
|
||||
.compile("\\d{3}(?:AJ|BJ|DJ|FJ|GJ|IJ|KJ|LJ|NJ|MJ|OJ|RJ|SJ|TJ|VJ|ZJ|CH|KH|ZH|EI|JA|JI|MZ|SH|PC|Y)");
|
||||
private static final Pattern P_LINE_NUMBER = Pattern.compile("\\d{2,5}");
|
||||
|
@ -578,9 +577,6 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
if ("Schw-B".equals(line)) // Schwebebahn, gilt als "Straßenbahn besonderer Bauart"
|
||||
return newLine('T' + line);
|
||||
|
||||
if (P_LINE_BUS_SPECIAL.matcher(line).matches())
|
||||
return newLine('B' + line);
|
||||
|
||||
if (P_LINE_RUSSIA.matcher(line).matches())
|
||||
return newLine('R' + line);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue