Adapt to API change of Germany.

This commit is contained in:
Andreas Schildbach 2014-12-14 01:43:55 +01:00
parent 8e1977d09c
commit 2be10d8bbf
2 changed files with 3 additions and 0 deletions

View file

@ -1433,6 +1433,8 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
protected void appendCommonQueryTripsBinaryParameters(final StringBuilder uri)
{
uri.append("&h2g-direct=11");
if (clientType != null)
uri.append("&clientType=").append(ParserUtils.urlEncode(clientType));
}
private final static int QUERY_TRIPS_BINARY_BUFFER_SIZE = 384 * 1024;

View file

@ -35,6 +35,7 @@ public final class BahnProvider extends AbstractHafasProvider
{
super(API_BASE + "bhftafel.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", 14);
setClientType("ANDROID");
setStationBoardHasStationTable(false);
}