AutocompletePrediction class
Properties
-
description
→ String?
-
description contains the human-readable name for the
returned result. For establishment results, this is usually
the business name.
final
-
distanceMeters
→ int?
-
distanceMeters contains an integer indicating the straight-line
distance between the predicted place, and the specified
origin point, in meters. This field is only returned
when the origin point is specified in the request.
This field is not returned in predictions of type route.
final
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
placeId
→ String?
-
placeId is a textual identifier that uniquely identifies a place.
To retrieve information about the place, pass this identifier
in the placeId field of a Places API request. For more
information about place IDs.
final
-
primaryDescription
→ String?
-
Returns the primaryDescription of a place. This will usually be the
name of the place. Example: "Eiffel Tower", "123 Pitt Street"
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
secondaryDescription
→ String?
-
Returns the secondaryDescription 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"
final
-
types
→ List<String>?
-
types contains an array of types that apply to this place.
For example:
"political", "locality"
or
"establishment", "geocode", "beauty_salon"
.
The array can contain multiple values.
final