public class NativeReverseGeocoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
apiKey |
protected java.lang.String |
apiVersion |
protected java.lang.String |
applicationClientId |
protected java.lang.String |
applicationClientVer |
protected java.lang.String |
sdkVersion |
protected java.lang.String |
server |
Constructor and Description |
---|
NativeReverseGeocoder(java.lang.String server,
java.lang.String apiVersion,
java.lang.String apiKey,
java.lang.String sdkVersion,
java.lang.String applicationClientId,
java.lang.String applicationClientVer) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the search in progress.
|
protected void |
cancel(long handle)
Cancels a search in progress.
|
protected long |
construct(java.lang.String server,
java.lang.String apiVersion,
java.lang.String apiKey)
Creates an instance of the native search handler.
|
protected void |
destruct(long handle)
Destroyy the native object.
|
protected void |
initializeAnalytics(long nativeHandle,
java.lang.String sdkVersion,
java.lang.String applicationClientId,
java.lang.String applicationClientVer)
Initializes STE analytics.
|
protected ReverseGeocoderSearchResponse |
requestSync(long handle,
long queryHandle)
Makes a search request.
|
Single<ResponseType> |
search(QueryType query)
Make a search request using provided query.
|
protected final java.lang.String server
protected final java.lang.String apiKey
protected final java.lang.String apiVersion
protected final java.lang.String sdkVersion
protected final java.lang.String applicationClientId
protected final java.lang.String applicationClientVer
public NativeReverseGeocoder(java.lang.String server, java.lang.String apiVersion, java.lang.String apiKey, java.lang.String sdkVersion, java.lang.String applicationClientId, java.lang.String applicationClientVer)
protected long construct(java.lang.String server, java.lang.String apiVersion, java.lang.String apiKey)
server
- the URI of the serverapiVersion
- the version of the API requests will be made againstapiKey
- TomTom API keyprotected void cancel(long handle)
handle
- the handle of the native search objectprotected void destruct(long handle)
handle
- the handle of the native search objectprotected ReverseGeocoderSearchResponse requestSync(long handle, long queryHandle)
handle
- the handle of the native search objectqueryHandle
- the handle of the native query objectprotected void initializeAnalytics(long nativeHandle, java.lang.String sdkVersion, java.lang.String applicationClientId, java.lang.String applicationClientVer)
nativeHandle
- the handle of the native search objectsdkVersion
- the version of TomTomSDK usedapplicationClientId
- the id of the clientapplicationClientVer
- the version of the clientpublic Single<ResponseType> search(QueryType query)
query
- the query to use in this search requestpublic void cancel()