mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
Navitia: Don't swallow trips.
Use the `min_nb_journeys` parameter rather than the `count` parameter when requesting trips. The `count` parameter causes Navitia to remove trips arbitrarily from the result which can look like a bug to the user when she knows a trip should be there, but it isn't.
This commit is contained in:
parent
e1a3da736c
commit
fde9b3f470
1 changed files with 1 additions and 1 deletions
|
@ -876,7 +876,7 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider {
|
|||
url.addQueryParameter("to", printLocation(to));
|
||||
url.addQueryParameter("datetime", printDate(date));
|
||||
url.addQueryParameter("datetime_represents", dep ? "departure" : "arrival");
|
||||
url.addQueryParameter("count", Integer.toString(this.numTripsRequested));
|
||||
url.addQueryParameter("min_nb_journeys", Integer.toString(this.numTripsRequested));
|
||||
url.addQueryParameter("depth", "0");
|
||||
|
||||
// Set walking speed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue