mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
parameter for number of connections to query
This commit is contained in:
parent
0b40edff29
commit
d254923b77
73 changed files with 278 additions and 252 deletions
|
@ -17,10 +17,17 @@
|
|||
|
||||
package de.schildbach.pte.live;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import de.schildbach.pte.NetworkProvider;
|
||||
import de.schildbach.pte.NetworkProvider.Accessibility;
|
||||
import de.schildbach.pte.NetworkProvider.WalkSpeed;
|
||||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.NearbyStationsResult;
|
||||
import de.schildbach.pte.dto.QueryConnectionsContext;
|
||||
import de.schildbach.pte.dto.QueryConnectionsResult;
|
||||
import de.schildbach.pte.dto.QueryDeparturesResult;
|
||||
|
||||
/**
|
||||
|
@ -52,4 +59,17 @@ public abstract class AbstractProviderLiveTest
|
|||
System.out.print(autocomplete.toDebugString() + " ");
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
protected final QueryConnectionsResult queryConnections(final NetworkProvider provider, final Location from, final Location via,
|
||||
final Location to, final Date date, final boolean dep, final String products, final WalkSpeed walkSpeed, final Accessibility accessibility)
|
||||
throws IOException
|
||||
{
|
||||
return provider.queryConnections(from, via, to, date, dep, 4, products, walkSpeed, accessibility);
|
||||
}
|
||||
|
||||
protected final QueryConnectionsResult queryMoreConnections(final NetworkProvider provider, final QueryConnectionsContext context,
|
||||
final boolean later) throws IOException
|
||||
{
|
||||
return provider.queryMoreConnections(context, later, 4);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue