mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-09 08:48:47 +00:00
use JSON stopfinder for Karlsruhe
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@876 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
cd33164906
commit
a06adc56ab
2 changed files with 2 additions and 1 deletions
|
@ -135,6 +135,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
uri.append("XML_STOPFINDER_REQUEST");
|
uri.append("XML_STOPFINDER_REQUEST");
|
||||||
appendCommonRequestParams(uri, "JSON");
|
appendCommonRequestParams(uri, "JSON");
|
||||||
uri.append("&locationServerActive=1");
|
uri.append("&locationServerActive=1");
|
||||||
|
uri.append("®ionID_sf=1"); // prefer own region
|
||||||
appendLocation(uri, constraint, "sf");
|
appendLocation(uri, constraint, "sf");
|
||||||
if (constraint.type == LocationType.ANY)
|
if (constraint.type == LocationType.ANY)
|
||||||
// 1=place 2=stop 4=street 8=address 16=crossing 32=poi 64=postcode
|
// 1=place 2=stop 4=street 8=address 16=crossing 32=poi 64=postcode
|
||||||
|
|
|
@ -72,7 +72,7 @@ public class KvvProvider extends AbstractEfaProvider
|
||||||
@Override
|
@Override
|
||||||
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
||||||
{
|
{
|
||||||
return xmlStopfinderRequest(new Location(LocationType.ANY, 0, null, constraint.toString()));
|
return jsonStopfinderRequest(new Location(LocationType.ANY, 0, null, constraint.toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue