mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
fix autocomplete coverage for Baden-Württemberg
This commit is contained in:
parent
5c79bf70a3
commit
a4c148709c
2 changed files with 19 additions and 11 deletions
|
@ -17,11 +17,6 @@
|
|||
|
||||
package de.schildbach.pte;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.LocationType;
|
||||
|
||||
/**
|
||||
* @author Andreas Schildbach
|
||||
|
@ -35,6 +30,7 @@ public class NvbwProvider extends AbstractEfaProvider
|
|||
{
|
||||
super(API_BASE);
|
||||
|
||||
setIncludeRegionId(false);
|
||||
setUseRouteIndexAsConnectionId(false);
|
||||
}
|
||||
|
||||
|
@ -51,10 +47,4 @@ public class NvbwProvider extends AbstractEfaProvider
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
||||
{
|
||||
return xmlStopfinderRequest(new Location(LocationType.STATION, 0, null, constraint.toString()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue