Migrate Poland to auto-complete via getstops endpoint.

This commit is contained in:
Andreas Schildbach 2014-07-07 13:29:25 +02:00
parent befa3e191e
commit 52dc7d7404

View file

@ -19,7 +19,6 @@ package de.schildbach.pte;
import java.io.IOException; import java.io.IOException;
import java.util.Collection; import java.util.Collection;
import java.util.List;
import de.schildbach.pte.dto.Location; import de.schildbach.pte.dto.Location;
import de.schildbach.pte.dto.LocationType; import de.schildbach.pte.dto.LocationType;
@ -41,7 +40,7 @@ public class PlProvider extends AbstractHafasProvider
public PlProvider() public PlProvider()
{ {
super(API_BASE + "stboard.exe/pn", null, API_BASE + "query.exe/pn", 7, UTF_8, UTF_8); super(API_BASE + "stboard.exe/pn", API_BASE + "ajax-getstop.exe/pn", API_BASE + "query.exe/pn", 7, UTF_8, UTF_8);
} }
public NetworkId id() public NetworkId id()
@ -173,12 +172,6 @@ public class PlProvider extends AbstractHafasProvider
reader.replace("platform=\"K ", " "); // Poland reader.replace("platform=\"K ", " "); // Poland
} }
@Override
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
{
return xmlMLcReq(constraint);
}
@Override @Override
public Collection<Product> defaultProducts() public Collection<Product> defaultProducts()
{ {