mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 18:18:49 +00:00
AbstractHafasClientInterfaceProvider: For now, from API version 1.19 on just ignore the equivs parameter.
This commit is contained in:
parent
95352d70e1
commit
0da46fe14d
1 changed files with 2 additions and 1 deletions
|
@ -254,7 +254,8 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
+ "\"time\":\"" + jsonTime + "\"," //
|
||||
+ "\"stbLoc\":{\"type\":\"S\"," + "\"state\":\"F\"," // F/M
|
||||
+ "\"extId\":" + JSONObject.quote(normalizedStationId.toString()) + "}," //
|
||||
+ "\"stbFltrEquiv\":" + stbFltrEquiv + ",\"maxJny\":" + maxJny + "}", false);
|
||||
+ (apiVersion.compareToIgnoreCase("1.19") < 0 ? "\"stbFltrEquiv\":" + stbFltrEquiv + "," : "") //
|
||||
+ "\"maxJny\":" + maxJny + "}", false);
|
||||
|
||||
final HttpUrl url = requestUrl(request);
|
||||
final CharSequence page = httpClient.get(url, request, "application/json");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue