mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-09 18:18:49 +00:00
departures for Austria
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@99 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
9bcfa6bc29
commit
dc9ff11c09
1 changed files with 8 additions and 4 deletions
|
@ -21,7 +21,11 @@ public class OebbProvider implements NetworkProvider
|
|||
|
||||
public boolean hasCapabilities(final Capability... capabilities)
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
for (final Capability capability : capabilities)
|
||||
if (capability != Capability.DEPARTURES)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public List<String> autoCompleteStationName(final CharSequence constraint) throws IOException
|
||||
|
@ -216,11 +220,11 @@ public class OebbProvider implements NetworkProvider
|
|||
return 'I';
|
||||
if (ucType.equals("RR")) // Finnland
|
||||
return 'I';
|
||||
if (ucType.equals("TLK")) // Tanie Linie Kolejowe (Polen)
|
||||
if (ucType.equals("TLK")) // Tanie Linie Kolejowe, Polen
|
||||
return 'I';
|
||||
if (ucType.equals("EE")) // Rumänien
|
||||
return 'I';
|
||||
if (ucType.equals("SC")) // Tschechien
|
||||
if (ucType.equals("SC")) // SuperCity, Tschechien
|
||||
return 'I';
|
||||
if (ucType.equals("RJ")) // RailJet, Österreichische Bundesbahnen
|
||||
return 'I';
|
||||
|
@ -283,7 +287,7 @@ public class OebbProvider implements NetworkProvider
|
|||
return 'R';
|
||||
if (ucType.equals("RE"))
|
||||
return 'R';
|
||||
if (ucType.equals("DPN"))
|
||||
if (ucType.equals("DPN")) // TODO nicht evtl. doch eher ne S-Bahn?
|
||||
return 'R';
|
||||
if (ucType.equals("VIA"))
|
||||
return 'R';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue