Migrate Leipzig, Halle & Sachsen-Anhalt to auto-complete via getstops endpoint.

This commit is contained in:
Andreas Schildbach 2014-07-07 13:27:14 +02:00
parent 6c0f2968c4
commit befa3e191e

View file

@ -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)
{