| 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.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
The full text of a place.
| |||||||||||
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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.android.gms.common.data.Freezable
| |||||||||||
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"
If you do not wish to highlight matches, you can pass null.
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.