public class QueryAutocompleteRequest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
QueryAutocompleteRequest.Response |
PendingResult.Callback<T>
Modifier | Constructor and Description |
---|---|
protected |
QueryAutocompleteRequest(GeoApiContext context) |
Modifier and Type | Method and Description |
---|---|
T |
await()
Performs the request synchronously.
|
T |
awaitIgnoreError()
Performs the request synchronously, ignoring exceptions
while performing the request and errors returned by the server.
|
void |
cancel()
Attempt to cancel the request.
|
A |
channel(java.lang.String channel)
A channel to pass with the request.
|
QueryAutocompleteRequest |
input(java.lang.String input)
input is the text string on which to search.
|
A |
language(java.lang.String language)
The language in which to return results.
|
QueryAutocompleteRequest |
location(LatLng location)
location is the point around which you wish to retrieve place information.
|
QueryAutocompleteRequest |
offset(int offset)
offset is the character position in the input term at which the service uses text for
predictions.
|
protected A |
param(java.lang.String key,
java.lang.String val) |
protected A |
param(java.lang.String key,
com.google.maps.internal.StringJoin.UrlValue val) |
protected java.util.Map<java.lang.String,java.lang.String> |
params() |
QueryAutocompleteRequest |
radius(int radius)
radius is the distance (in meters) within which to return place results.
|
void |
setCallback(PendingResult.Callback<T> callback)
Performs the request asynchronously, calling onResult or onFailure after
the request has been completed.
|
protected void |
validateRequest() |
protected QueryAutocompleteRequest(GeoApiContext context)
protected void validateRequest()
public QueryAutocompleteRequest input(java.lang.String input)
public QueryAutocompleteRequest offset(int offset)
public QueryAutocompleteRequest location(LatLng location)
public QueryAutocompleteRequest radius(int radius)
public final void setCallback(PendingResult.Callback<T> callback)
PendingResult
setCallback
in interface PendingResult<T>
public final T await() throws java.lang.Exception
PendingResult
await
in interface PendingResult<T>
java.lang.Exception
public final T awaitIgnoreError()
PendingResult
awaitIgnoreError
in interface PendingResult<T>
public final void cancel()
PendingResult
cancel
in interface PendingResult<T>
protected A param(java.lang.String key, java.lang.String val)
protected A param(java.lang.String key, com.google.maps.internal.StringJoin.UrlValue val)
protected java.util.Map<java.lang.String,java.lang.String> params()
public final A language(java.lang.String language)
language
- The language code, e.g. "en-AU" or "es"public A channel(java.lang.String channel)
channel
- String to pass with the request for analytics