mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 06:08:52 +00:00
more lines
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@13 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
d3a4c65ba6
commit
a2ec9a75e8
1 changed files with 12 additions and 2 deletions
|
@ -533,14 +533,24 @@ public class MvvProvider implements NetworkProvider
|
|||
{
|
||||
if (line.matches("\\d{2,4}") && Integer.parseInt(line) >= 30)
|
||||
return "B" + line;
|
||||
else if (line.matches("N4\\d"))
|
||||
return "B" + line;
|
||||
else if (LINES.containsKey("T" + line))
|
||||
return "T" + line;
|
||||
else if (LINES.containsKey("S" + line))
|
||||
return "S" + line;
|
||||
else if (LINES.containsKey("U" + line))
|
||||
return "U" + line;
|
||||
else if (line.matches("N4\\d"))
|
||||
return "B" + line;
|
||||
else if (line.startsWith("RE "))
|
||||
return "R" + line;
|
||||
else if (line.startsWith("RB "))
|
||||
return "R" + line;
|
||||
else if (line.startsWith("ALX "))
|
||||
return "R" + line;
|
||||
else if (line.startsWith("ICE "))
|
||||
return "I" + line;
|
||||
else if (line.startsWith("CNL "))
|
||||
return "I" + line;
|
||||
|
||||
throw new IllegalStateException("cannot normalize null product, line " + line);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue