mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-10 11:08:48 +00:00
one more line
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@26 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
31d1641017
commit
453bef966c
1 changed files with 4 additions and 2 deletions
|
@ -110,7 +110,7 @@ public final class BahnProvider implements NetworkProvider
|
||||||
{
|
{
|
||||||
return (double) value / 1000000;
|
return (double) value / 1000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
public StationLocationResult stationLocation(final String stationId) throws IOException
|
public StationLocationResult stationLocation(final String stationId) throws IOException
|
||||||
{
|
{
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
|
@ -423,7 +423,7 @@ public final class BahnProvider implements NetworkProvider
|
||||||
public QueryDeparturesResult queryDepartures(final String uri) throws IOException
|
public QueryDeparturesResult queryDepartures(final String uri) throws IOException
|
||||||
{
|
{
|
||||||
final CharSequence page = ParserUtils.scrape(uri);
|
final CharSequence page = ParserUtils.scrape(uri);
|
||||||
|
|
||||||
final Matcher mStationId = P_DEPARTURES_URI_STATION_ID.matcher(uri);
|
final Matcher mStationId = P_DEPARTURES_URI_STATION_ID.matcher(uri);
|
||||||
if (!mStationId.find())
|
if (!mStationId.find())
|
||||||
throw new IllegalStateException(uri);
|
throw new IllegalStateException(uri);
|
||||||
|
@ -538,6 +538,8 @@ public final class BahnProvider implements NetworkProvider
|
||||||
return "ISC" + number;
|
return "ISC" + number;
|
||||||
if (type.equals("EST")) // Eurostar
|
if (type.equals("EST")) // Eurostar
|
||||||
return "IEST" + number;
|
return "IEST" + number;
|
||||||
|
if (type.equals("ES")) // Eurostar Italia
|
||||||
|
return "IES" + number;
|
||||||
if (type.equals("HOT")) // Spanien, Nachtzug?
|
if (type.equals("HOT")) // Spanien, Nachtzug?
|
||||||
return "IHOT" + number;
|
return "IHOT" + number;
|
||||||
if (type.equals("R"))
|
if (type.equals("R"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue