mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
AbstractHafasClientInterfaceProvider: Remove getPasslist option.
It seems to be unnecessary and has been removed from later API versions anyway.
This commit is contained in:
parent
06cec0c183
commit
61ed999c65
1 changed files with 7 additions and 11 deletions
|
@ -229,16 +229,12 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
||||||
final CharSequence normalizedStationId = normalizeStationId(stationId);
|
final CharSequence normalizedStationId = normalizeStationId(stationId);
|
||||||
final CharSequence stbFltrEquiv = Boolean.toString(!equivs);
|
final CharSequence stbFltrEquiv = Boolean.toString(!equivs);
|
||||||
final CharSequence maxJny = Integer.toString(maxDepartures != 0 ? maxDepartures : DEFAULT_MAX_DEPARTURES);
|
final CharSequence maxJny = Integer.toString(maxDepartures != 0 ? maxDepartures : DEFAULT_MAX_DEPARTURES);
|
||||||
final CharSequence getPasslist = Boolean.toString(true); // traffic expensive
|
final String request = wrapJsonApiRequest("StationBoard", "{\"type\":\"DEP\"," //
|
||||||
final String request = wrapJsonApiRequest("StationBoard",
|
+ "\"date\":\"" + jsonDate + "\"," //
|
||||||
"{\"type\":\"DEP\"," //
|
+ "\"time\":\"" + jsonTime + "\"," //
|
||||||
+ "\"date\":\"" + jsonDate + "\"," //
|
+ "\"stbLoc\":{\"type\":\"S\"," + "\"state\":\"F\"," // F/M
|
||||||
+ "\"time\":\"" + jsonTime + "\"," //
|
+ "\"extId\":" + JSONObject.quote(normalizedStationId.toString()) + "}," //
|
||||||
+ "\"stbLoc\":{\"type\":\"S\"," + "\"state\":\"F\"," // F/M
|
+ "\"stbFltrEquiv\":" + stbFltrEquiv + ",\"maxJny\":" + maxJny + "}", false);
|
||||||
+ "\"extId\":" + JSONObject.quote(normalizedStationId.toString()) + "}," //
|
|
||||||
+ "\"stbFltrEquiv\":" + stbFltrEquiv + ",\"maxJny\":" + maxJny + ",\"getPasslist\":"
|
|
||||||
+ getPasslist + "}",
|
|
||||||
false);
|
|
||||||
|
|
||||||
final HttpUrl url = requestUrl(request);
|
final HttpUrl url = requestUrl(request);
|
||||||
final CharSequence page = httpClient.get(url, request, "application/json");
|
final CharSequence page = httpClient.get(url, request, "application/json");
|
||||||
|
@ -452,7 +448,7 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
||||||
+ "\"jnyFltrL\":[{\"value\":\"" + jnyFltr + "\",\"mode\":\"BIT\",\"type\":\"PROD\"}]," //
|
+ "\"jnyFltrL\":[{\"value\":\"" + jnyFltr + "\",\"mode\":\"BIT\",\"type\":\"PROD\"}]," //
|
||||||
+ "\"gisFltrL\":[{\"mode\":\"FB\",\"profile\":{\"type\":\"F\",\"linDistRouting\":false,\"maxdist\":2000},\"type\":\"M\",\"meta\":\""
|
+ "\"gisFltrL\":[{\"mode\":\"FB\",\"profile\":{\"type\":\"F\",\"linDistRouting\":false,\"maxdist\":2000},\"type\":\"M\",\"meta\":\""
|
||||||
+ meta + "\"}]," //
|
+ meta + "\"}]," //
|
||||||
+ "\"getPolyline\":false,\"getPasslist\":true,\"getIST\":false,\"getEco\":false,\"extChgTime\":-1}", //
|
+ "\"getPolyline\":false,\"getIST\":false,\"getEco\":false,\"extChgTime\":-1}", //
|
||||||
false);
|
false);
|
||||||
|
|
||||||
final HttpUrl url = requestUrl(request);
|
final HttpUrl url = requestUrl(request);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue