From a2ec9a75e8b4ae91c08bff07582b1b4c9e8142d4 Mon Sep 17 00:00:00 2001 From: "andreas.schildbach" Date: Sat, 17 Jul 2010 08:08:49 +0000 Subject: [PATCH] more lines git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@13 0924bc21-9374-b0fa-ee44-9ff1593b38f0 --- src/de/schildbach/pte/MvvProvider.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/de/schildbach/pte/MvvProvider.java b/src/de/schildbach/pte/MvvProvider.java index 3db51157..9d71cbfc 100644 --- a/src/de/schildbach/pte/MvvProvider.java +++ b/src/de/schildbach/pte/MvvProvider.java @@ -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); }