com.google.android.gms.location.places.AutocompletePrediction |
Represents a query's suggestions and its attributes, like matched substrings. For more information about place autocomplete, see the developer's guide.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AutocompletePrediction.Substring |
This interface is deprecated.
Please use getFullText(CharacterStyle) to format matches more easily
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Please use
getFullText(CharacterStyle) to format matches more easily
| |||||||||||
The full text of a place.
| |||||||||||
This method is deprecated.
Please use
getFullText(CharacterStyle) to format matches more easily
| |||||||||||
Returns the place ID of the place being referred to by this prediction.
| |||||||||||
Returns the list of place types associated with the place referred to by
getPlaceId() .
| |||||||||||
The primary text of a place.
| |||||||||||
The secondary text of a place.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This method is deprecated.
Please use getFullText(CharacterStyle)
to format matches more easily
The description of a predicted place.
Examples:
The full text of a place. This is a combination of the primary text and the secondary text.
Example: "Eiffel Tower, Avenue Anatole France, Paris, France"
This method is equivalent to getDescription()
, but it also lets you highlight
matches with the style of your choice.
If you do not wish to highlight matches, you can pass null.
This method is deprecated.
Please use getFullText(CharacterStyle)
to format matches more easily
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. For more information on place IDs, see the place ID overview.
Returns the list of place types associated with the place referred to by
getPlaceId()
. For more information on place types, see
the place types overview.
The primary text of a place. This will usually be the name of the place.
Example: "Eiffel Tower", "123 Pitt Street"
See getFullText(CharacterStyle)
for more information on formatting.
The secondary text of a place. This provides extra context on the place, and can be used as a second line when showing autocomplete predictions.
Example: "Avenue Anatole France, Paris, France", "Sydney, New South Wales"
See getFullText(CharacterStyle)
for more information on formatting.