mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 08:10:46 +00:00
Migrate Leipzig, Halle & Sachsen-Anhalt to auto-complete via getstops endpoint.
This commit is contained in:
parent
6c0f2968c4
commit
befa3e191e
1 changed files with 1 additions and 8 deletions
|
@ -18,7 +18,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;
|
||||
|
@ -37,7 +36,7 @@ public class NasaProvider extends AbstractHafasProvider
|
|||
|
||||
public NasaProvider()
|
||||
{
|
||||
super(API_BASE + "stboard.exe/dn", null, API_BASE + "query.exe/dn", 8);
|
||||
super(API_BASE + "stboard.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", 8);
|
||||
|
||||
setJsonNearbyStationsEncoding(UTF_8);
|
||||
}
|
||||
|
@ -168,12 +167,6 @@ public class NasaProvider extends AbstractHafasProvider
|
|||
reader.replace("\"Florian Geyer\"", "Florian Geyer");
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
||||
{
|
||||
return xmlMLcReq(constraint);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected char normalizeType(String type)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue