more lines

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@13 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach 2010-07-17 08:08:49 +00:00
parent d3a4c65ba6
commit a2ec9a75e8

View file

@ -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);
}