mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
NetworkProvider: Add maxLocations parameter to suggestLocations().
This commit is contained in:
parent
73cf64278f
commit
0ea83a1ad3
12 changed files with 55 additions and 33 deletions
|
@ -196,8 +196,9 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
}
|
||||
|
||||
@Override
|
||||
public SuggestLocationsResult suggestLocations(final CharSequence constraint) throws IOException {
|
||||
return jsonLocMatch(constraint, null, 0);
|
||||
public SuggestLocationsResult suggestLocations(final CharSequence constraint, final int maxLocations)
|
||||
throws IOException {
|
||||
return jsonLocMatch(constraint, null, maxLocations);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue