mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 06:08:52 +00:00
AbstractHafasClientInterfaceProvider: Pass 'getConGroups' flag when querying for trips to reduce size of response.
This commit is contained in:
parent
d88d7137d6
commit
176bce0790
2 changed files with 3 additions and 2 deletions
|
@ -553,7 +553,8 @@ 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\":true,\"getPasslist\":true,\"getIST\":false,\"getEco\":false,\"extChgTime\":-1}", //
|
+ "\"getPolyline\":true,\"getPasslist\":true," //
|
||||||
|
+ "\"getConGroups\":false,\"getIST\":false,\"getEco\":false,\"extChgTime\":-1}", //
|
||||||
false);
|
false);
|
||||||
|
|
||||||
final HttpUrl url = requestUrl(request);
|
final HttpUrl url = requestUrl(request);
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class SncbProvider extends AbstractHafasClientInterfaceProvider {
|
||||||
|
|
||||||
public SncbProvider(final String jsonApiAuthorization) {
|
public SncbProvider(final String jsonApiAuthorization) {
|
||||||
super(NetworkId.SNCB, API_BASE, PRODUCTS_MAP);
|
super(NetworkId.SNCB, API_BASE, PRODUCTS_MAP);
|
||||||
setApiVersion("1.14");
|
setApiVersion("1.15");
|
||||||
setApiClient("{\"id\":\"SNCB\",\"type\":\"AND\"}");
|
setApiClient("{\"id\":\"SNCB\",\"type\":\"AND\"}");
|
||||||
setApiAuthorization(jsonApiAuthorization);
|
setApiAuthorization(jsonApiAuthorization);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue