mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
'autocomplete one line' capability for all efa-based providers
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@565 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
65dec1fceb
commit
eeee8303a2
44 changed files with 210 additions and 53 deletions
|
@ -27,6 +27,7 @@ import java.util.Locale;
|
|||
import java.util.Map;
|
||||
|
||||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.LocationType;
|
||||
import de.schildbach.pte.util.Color;
|
||||
import de.schildbach.pte.util.ParserUtils;
|
||||
|
||||
|
@ -61,7 +62,7 @@ public class VrrProvider extends AbstractEfaProvider
|
|||
@Override
|
||||
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
||||
{
|
||||
return xmlStopfinderRequest(constraint);
|
||||
return xmlStopfinderRequest(new Location(LocationType.ANY, 0, null, constraint.toString()));
|
||||
}
|
||||
|
||||
private static final String NEARBY_LATLON_URI = API_BASE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue