mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
more lines
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@397 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
72e07658ce
commit
51db8036e5
3 changed files with 8 additions and 2 deletions
|
@ -627,6 +627,8 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
return "I" + normalizedName;
|
||||
if ("NZ".equals(normalizedType)) // Nacht-Zug
|
||||
return "I" + normalizedName;
|
||||
if ("FYR".equals(normalizedType)) // Fyra, Amsterdam-Schiphol-Rotterdam
|
||||
return "I" + normalizedName;
|
||||
|
||||
if ("R".equals(normalizedType)) // Regio
|
||||
return "R" + normalizedName;
|
||||
|
|
|
@ -782,6 +782,8 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
return "RVE" + number;
|
||||
if (type.equals("DZ")) // Dampfzug Freiburg-Innsbruck
|
||||
return "RDZ " + number;
|
||||
if (type.equals("ag")) // Regensburg-Landshut
|
||||
return "Rag " + number;
|
||||
|
||||
if (type.equals("S"))
|
||||
return "SS" + number;
|
||||
|
|
|
@ -684,6 +684,8 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
return "IEN" + number;
|
||||
if (type.equals("CNL")) // CityNightLine
|
||||
return "ICNL" + number;
|
||||
if (type.equals("IR"))
|
||||
return "R" + number;
|
||||
if (type.equals("Zug"))
|
||||
return "R" + number;
|
||||
if (type.equals("ZUG"))
|
||||
|
@ -715,10 +717,10 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
if (type.equals("F"))
|
||||
return "FF" + number;
|
||||
|
||||
throw new IllegalStateException("cannot normalize type " + type + " line " + line);
|
||||
throw new IllegalStateException("cannot normalize type '" + type + "' number '" + number + "' line '" + line + "'");
|
||||
}
|
||||
|
||||
throw new IllegalStateException("cannot normalize line " + line);
|
||||
throw new IllegalStateException("cannot normalize line '" + line + "'");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue