mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
stationId is int in queryDepartures() as well
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@624 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
93c49c5663
commit
7422504893
68 changed files with 109 additions and 115 deletions
|
@ -101,7 +101,7 @@ public class SbbProvider extends AbstractHafasProvider
|
|||
}
|
||||
}
|
||||
|
||||
private String departuresQueryUri(final String stationId, final int maxDepartures)
|
||||
private String departuresQueryUri(final int stationId, final int maxDepartures)
|
||||
{
|
||||
final StringBuilder uri = new StringBuilder();
|
||||
uri.append(API_BASE).append("bhftafel.exe/dox");
|
||||
|
@ -141,7 +141,7 @@ public class SbbProvider extends AbstractHafasProvider
|
|||
+ ".*?" //
|
||||
, Pattern.DOTALL);
|
||||
|
||||
public QueryDeparturesResult queryDepartures(final String stationId, final int maxDepartures, final boolean equivs) throws IOException
|
||||
public QueryDeparturesResult queryDepartures(final int stationId, final int maxDepartures, final boolean equivs) throws IOException
|
||||
{
|
||||
final QueryDeparturesResult result = new QueryDeparturesResult();
|
||||
|
||||
|
@ -156,8 +156,8 @@ public class SbbProvider extends AbstractHafasProvider
|
|||
// messages
|
||||
if (mHeadCoarse.group(3) != null)
|
||||
{
|
||||
result.stationDepartures.add(new StationDepartures(new Location(LocationType.STATION, Integer.parseInt(stationId)), Collections
|
||||
.<Departure> emptyList(), null));
|
||||
result.stationDepartures.add(new StationDepartures(new Location(LocationType.STATION, stationId),
|
||||
Collections.<Departure> emptyList(), null));
|
||||
return result;
|
||||
}
|
||||
else if (mHeadCoarse.group(5) != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue