mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
Migrate Poland to auto-complete via getstops endpoint.
This commit is contained in:
parent
befa3e191e
commit
52dc7d7404
1 changed files with 1 additions and 8 deletions
|
@ -19,7 +19,6 @@ package de.schildbach.pte;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.LocationType;
|
||||
|
@ -41,7 +40,7 @@ public class PlProvider extends AbstractHafasProvider
|
|||
|
||||
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()
|
||||
|
@ -173,12 +172,6 @@ public class PlProvider extends AbstractHafasProvider
|
|||
reader.replace("platform=\"K ", " "); // Poland
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
||||
{
|
||||
return xmlMLcReq(constraint);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<Product> defaultProducts()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue