mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
Adapt to API change of Germany.
This commit is contained in:
parent
8e1977d09c
commit
2be10d8bbf
2 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue