mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
use stop finder if available for auto-completion
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@559 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
db6d9b4337
commit
cdc3ef140c
68 changed files with 1206 additions and 238 deletions
|
@ -32,6 +32,11 @@ public class AtcProvider extends AbstractEfaProvider
|
|||
public static final NetworkId NETWORK_ID = NetworkId.ATC;
|
||||
private final static String API_BASE = "http://tpweb.atc.bo.it/atc2/";
|
||||
|
||||
public AtcProvider()
|
||||
{
|
||||
super(API_BASE, null);
|
||||
}
|
||||
|
||||
public NetworkId id()
|
||||
{
|
||||
return NETWORK_ID;
|
||||
|
@ -46,15 +51,6 @@ public class AtcProvider extends AbstractEfaProvider
|
|||
return false;
|
||||
}
|
||||
|
||||
private static final String AUTOCOMPLETE_URI = API_BASE
|
||||
+ "XSLT_TRIP_REQUEST2?outputFormat=XML&coordOutputFormat=WGS84&locationServerActive=1&type_origin=any&name_origin=%s";
|
||||
|
||||
@Override
|
||||
protected String autocompleteUri(final CharSequence constraint)
|
||||
{
|
||||
return String.format(AUTOCOMPLETE_URI, ParserUtils.urlEncode(constraint.toString(), "ISO-8859-1"));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String nearbyLatLonUri(final int lat, final int lon)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue