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:
andreas.schildbach 2010-08-22 13:22:05 +00:00
parent 9bcfa6bc29
commit dc9ff11c09

View file

@ -21,7 +21,11 @@ public class OebbProvider implements NetworkProvider
public boolean hasCapabilities(final Capability... capabilities) 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 public List<String> autoCompleteStationName(final CharSequence constraint) throws IOException
@ -216,11 +220,11 @@ public class OebbProvider implements NetworkProvider
return 'I'; return 'I';
if (ucType.equals("RR")) // Finnland if (ucType.equals("RR")) // Finnland
return 'I'; return 'I';
if (ucType.equals("TLK")) // Tanie Linie Kolejowe (Polen) if (ucType.equals("TLK")) // Tanie Linie Kolejowe, Polen
return 'I'; return 'I';
if (ucType.equals("EE")) // Rumänien if (ucType.equals("EE")) // Rumänien
return 'I'; return 'I';
if (ucType.equals("SC")) // Tschechien if (ucType.equals("SC")) // SuperCity, Tschechien
return 'I'; return 'I';
if (ucType.equals("RJ")) // RailJet, Österreichische Bundesbahnen if (ucType.equals("RJ")) // RailJet, Österreichische Bundesbahnen
return 'I'; return 'I';
@ -283,7 +287,7 @@ public class OebbProvider implements NetworkProvider
return 'R'; return 'R';
if (ucType.equals("RE")) if (ucType.equals("RE"))
return 'R'; return 'R';
if (ucType.equals("DPN")) if (ucType.equals("DPN")) // TODO nicht evtl. doch eher ne S-Bahn?
return 'R'; return 'R';
if (ucType.equals("VIA")) if (ucType.equals("VIA"))
return 'R'; return 'R';