mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
Hafas: Set clientType by default.
This commit is contained in:
parent
de5db3cb98
commit
f12c9db7e9
3 changed files with 1 additions and 3 deletions
|
@ -96,7 +96,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
protected final String queryEndpoint;
|
||||
private final int numProductBits;
|
||||
private @Nullable String accessId = null;
|
||||
private @Nullable String clientType = null;
|
||||
private @Nullable String clientType = "ANDROID";
|
||||
private Charset jsonGetStopsEncoding;
|
||||
private boolean jsonGetStopsUseWeight = true;
|
||||
private Charset jsonNearbyLocationsEncoding;
|
||||
|
|
|
@ -35,7 +35,6 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
{
|
||||
super(NetworkId.DB, API_BASE_STATION_BOARD + "bhftafel.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", 14);
|
||||
|
||||
setClientType("ANDROID");
|
||||
setStationBoardHasStationTable(false);
|
||||
setJsonGetStopsUseWeight(false);
|
||||
}
|
||||
|
|
|
@ -40,7 +40,6 @@ public class SeProvider extends AbstractHafasProvider
|
|||
{
|
||||
super(NetworkId.SE, API_BASE + "stboard.exe/sn", API_BASE + "ajax-getstop.exe/sny", API_BASE + "query.exe/sn", 14, Charsets.UTF_8);
|
||||
|
||||
setClientType("ANDROID");
|
||||
setUseIso8601(true);
|
||||
setStationBoardHasStationTable(false);
|
||||
setStationBoardCanDoEquivs(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue