com.google.android.gms.location.places.AutocompletePrediction |
Represents a query's suggestions and its attributes, like matched substrings.
Nested Classes | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AutocompletePrediction.Substring | Represents a matched substring in a query suggestion's description. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The description of a predicted place.
| |||||||||||
Get a list of matched substrings in a query suggestion's description.
| |||||||||||
Returns the place ID of the place being referred to by this prediction, or null if this
prediction is not for a place.
| |||||||||||
Returns the list of place types associated with the place referred to by
getPlaceId() .
|
[Expand]
Inherited Methods | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
The description of a predicted place.
Examples:
Get a list of matched substrings in a query suggestion's description.
Each AutocompletePrediction.Substring
contains an offset value and a length. These describe the location of
the entered term in the prediction result text, so that the term can be highlighted if
desired.
Returns the place ID of the place being referred to by this prediction, or null if this prediction is not for a place.
Returns the list of place types associated with the place referred to by
getPlaceId()
.