mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
added more <noTrain /> handling
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@382 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
fdb8e96f4e
commit
33b37691c4
1 changed files with 14 additions and 0 deletions
|
@ -361,6 +361,12 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
|||
final String str = name != null ? name : "";
|
||||
if (noTrainName.equals("S-Bahn"))
|
||||
return 'S' + str;
|
||||
if (noTrainName.equals("U-Bahn"))
|
||||
return 'U' + str;
|
||||
if (noTrainName.equals("Straßenbahn"))
|
||||
return 'T' + str;
|
||||
if (noTrainName.equals("Badner Bahn"))
|
||||
return 'T' + str;
|
||||
if (noTrainName.equals("Citybus"))
|
||||
return 'B' + str;
|
||||
if (noTrainName.equals("Regionalbus"))
|
||||
|
@ -369,8 +375,16 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
|||
return 'B' + str;
|
||||
if (noTrainName.equals("Autobus"))
|
||||
return 'B' + str;
|
||||
if (noTrainName.equals("Discobus"))
|
||||
return 'B' + str;
|
||||
if (noTrainName.equals("Nachtbus"))
|
||||
return 'B' + str;
|
||||
if (noTrainName.equals("Anrufsammeltaxi"))
|
||||
return 'B' + str;
|
||||
if (noTrainName.equals("Ersatzverkehr"))
|
||||
return 'B' + str;
|
||||
if (noTrainName.equals("Vienna Airport Lines"))
|
||||
return 'B' + str;
|
||||
}
|
||||
|
||||
throw new IllegalStateException("cannot normalize mot '" + mot + "' name '" + name + "' long '" + longName + "' noTrainName '"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue