mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 01:19:49 +00:00
VRS: Fix product filter when querying trips.
This commit is contained in:
parent
dee663ea54
commit
0f77095d65
1 changed files with 3 additions and 5 deletions
|
@ -697,11 +697,9 @@ public class VrsProvider extends AbstractNetworkProvider {
|
||||||
}
|
}
|
||||||
url.addQueryParameter(dep ? "d" : "a", formatDate(date));
|
url.addQueryParameter(dep ? "d" : "a", formatDate(date));
|
||||||
url.addQueryParameter("s", "t");
|
url.addQueryParameter("s", "t");
|
||||||
|
if (!products.equals(Product.ALL))
|
||||||
url.addQueryParameter("p", generateProducts(products));
|
url.addQueryParameter("p", generateProducts(products));
|
||||||
url.addQueryParameter("o", "v");
|
url.addQueryParameter("o", "v" + (EXACT_POINTS ? "p" : ""));
|
||||||
if (EXACT_POINTS) {
|
|
||||||
url.addQueryParameter("p", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
final CharSequence page = httpClient.get(url.build());
|
final CharSequence page = httpClient.get(url.build());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue