public static class CurrentPlaceRequestParams.Builder
extends java.lang.Object
CurrentPlaceRequestParams| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CurrentPlaceRequestParams.Builder |
addField(java.lang.String field)
Specifies a field to be added to the response.
|
CurrentPlaceRequestParams |
build()
Returns the
CurrentPlaceRequestParams |
CurrentPlaceRequestParams.Builder |
setLimit(int limit)
Sets the maximum number of results to be returned.
|
CurrentPlaceRequestParams.Builder |
setLocation(android.location.Location location)
Sets the current user location.
|
CurrentPlaceRequestParams.Builder |
setMinConfidenceLevel(CurrentPlaceRequestParams.ConfidenceLevel minConfidenceLevel)
The minimum confidence level of suggestions to return.
|
CurrentPlaceRequestParams.Builder |
setScanMode(CurrentPlaceRequestParams.ScanMode scanMode)
Sets the scan mode to be used.
|
public CurrentPlaceRequestParams.Builder setLocation(android.location.Location location)
LocationManager.location - The location at which the user is currently located.public CurrentPlaceRequestParams.Builder setScanMode(CurrentPlaceRequestParams.ScanMode scanMode)
scanMode - The scan mode used when generating the current place request.public CurrentPlaceRequestParams.Builder setMinConfidenceLevel(CurrentPlaceRequestParams.ConfidenceLevel minConfidenceLevel)
CurrentPlaceRequestParams.ConfidenceLevel.minConfidenceLevel - the minimum confidence level of suggestions to return.public CurrentPlaceRequestParams.Builder setLimit(int limit)
limit - the maximum number of results to be returned.public CurrentPlaceRequestParams.Builder addField(java.lang.String field)
PlaceFields for a list
of known place fields. Refer to the online Places Graph documentation for an up to date
list of fields.field - The field to be returned in the response PlaceFields.public CurrentPlaceRequestParams build()
CurrentPlaceRequestParamsCurrentPlaceRequestParams