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:
andreas.schildbach@gmail.com 2012-01-21 01:17:26 +00:00
parent cd33164906
commit a06adc56ab
2 changed files with 2 additions and 1 deletions

View file

@ -135,6 +135,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
uri.append("XML_STOPFINDER_REQUEST");
appendCommonRequestParams(uri, "JSON");
uri.append("&locationServerActive=1");
uri.append("&regionID_sf=1"); // prefer own region
appendLocation(uri, constraint, "sf");
if (constraint.type == LocationType.ANY)
// 1=place 2=stop 4=street 8=address 16=crossing 32=poi 64=postcode

View file

@ -72,7 +72,7 @@ public class KvvProvider extends AbstractEfaProvider
@Override
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