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:
Torsten Grote 2017-01-20 12:42:07 -02:00 committed by Andreas Schildbach
parent e1a3da736c
commit fde9b3f470

View file

@ -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.