mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
mot 16 lines
This commit is contained in:
parent
853a6904ab
commit
34b032b11d
1 changed files with 19 additions and 0 deletions
|
@ -64,6 +64,25 @@ public class BayernProvider extends AbstractEfaProvider
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String parseLine(final String mot, final String symbol, final String name, final String longName, final String trainType,
|
||||
final String trainNum, final String trainName)
|
||||
{
|
||||
if ("16".equals(mot))
|
||||
{
|
||||
if ("EC".equals(trainType))
|
||||
return "IEC" + trainNum;
|
||||
if ("IC".equals(trainType))
|
||||
return "IIC" + trainNum;
|
||||
if ("ICE".equals(trainType))
|
||||
return "IICE" + trainNum;
|
||||
if ("RJ".equals(trainType)) // railjet
|
||||
return "IRJ" + trainNum;
|
||||
}
|
||||
|
||||
return super.parseLine(mot, symbol, name, longName, trainType, trainNum, trainName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NearbyStationsResult queryNearbyStations(final Location location, final int maxDistance, final int maxStations) throws IOException
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue