public class RadarSearchRequest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RadarSearchRequest.Response |
PendingResult.Callback<T>
Modifier | Constructor and Description |
---|---|
protected |
RadarSearchRequest(GeoApiContext context) |
Modifier and Type | Method and Description |
---|---|
T |
await()
Performs the GET 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.
|
A |
custom(java.lang.String parameter,
java.lang.String value)
Custom parameter.
|
RadarSearchRequest |
keyword(java.lang.String keyword)
keyword is a term to be matched against all content that Google has indexed for this place,
including but not limited to name, type, and address, as well as customer reviews and other
third-party content.
|
A |
language(java.lang.String language)
The language in which to return results.
|
RadarSearchRequest |
location(LatLng location)
location is the latitude/longitude around which to retrieve place information.
|
RadarSearchRequest |
maxPrice(PriceLevel priceLevel)
maxPrice restricts to places that are at most this price level.
|
RadarSearchRequest |
minPrice(PriceLevel priceLevel)
minPrice restricts to places that are at least this price level.
|
RadarSearchRequest |
name(java.lang.String name)
name is one or more terms to be matched against the names of places, separated with a space
character.
|
RadarSearchRequest |
openNow(boolean openNow)
openNow returns only those places that are open for business at the time the query is sent.
|
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() |
RadarSearchRequest |
radius(int distance)
radius defines 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.
|
RadarSearchRequest |
type(PlaceType type)
type restricts the results to places matching the specified type.
|
protected void |
validateRequest() |
protected RadarSearchRequest(GeoApiContext context)
public RadarSearchRequest location(LatLng location)
public RadarSearchRequest radius(int distance)
public RadarSearchRequest keyword(java.lang.String keyword)
public RadarSearchRequest minPrice(PriceLevel priceLevel)
public RadarSearchRequest maxPrice(PriceLevel priceLevel)
public RadarSearchRequest name(java.lang.String name)
public RadarSearchRequest openNow(boolean openNow)
public RadarSearchRequest type(PlaceType type)
protected void validateRequest()
public final void setCallback(PendingResult.Callback<T> callback)
PendingResult
setCallback
in interface PendingResult<T>
public final T await() throws ApiException, java.lang.InterruptedException, java.io.IOException
PendingResult
await
in interface PendingResult<T>
ApiException
java.lang.InterruptedException
java.io.IOException
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 analyticspublic A custom(java.lang.String parameter, java.lang.String value)