PickResult class

A model class that represents the result of a place pick operation.

This class stores information about a selected place, including its geographic location, address details, and other place-specific information. The data can come either from Geocoding results or Place Details results.

Constructors

PickResult.new({String? placeId, Geometry? geometry, String? formattedAddress, List<String>? types, List<AddressComponent>? addressComponents, String? adrAddress, String? formattedPhoneNumber, String? id, String? reference, String? icon, String? name, OpeningHoursDetail? openingHours, List<Photo>? photos, String? internationalPhoneNumber, PriceLevel? priceLevel, num? rating, String? scope, String? url, String? vicinity, num? utcOffset, String? website, List<Review>? reviews})
PickResult.fromGeocodingResult(GeocodingResult result)
factory
PickResult.fromPlaceDetailResult(PlaceDetails result)
Creates a PickResult from a PlaceDetails result.
factory

Properties

addressComponents List<AddressComponent>?
An array containing the separate components of the address.
final
adrAddress String?
A representation of the place's address in the adr microformat.
final
formattedAddress String?
The human-readable address of this place.
final
formattedPhoneNumber String?
Contains the place's phone number in its local format.
final
geometry → Geometry?
Contains the location coordinates and viewport information.
final
hashCode int
The hash code for this object.
no setterinherited
icon String?
URL of a suggested icon which may be displayed to the user.
final
id String?
Additional place identifier.
final
internationalPhoneNumber String?
The place's phone number in international format.
final
name String?
Human-readable name for the returned result.
final
openingHours → OpeningHoursDetail?
Opening hour information for the place.
final
photos List<Photo>?
Array of photo objects, each containing a reference to an image.
final
placeId String?
A unique identifier that can be used with other Google APIs.
final
priceLevel → PriceLevel?
The price level of the place, on a scale of 0 to 4.
final
rating num?
The place's rating, from 1.0 to 5.0, based on user reviews.
final
reference String?
Reference identifier for the place.
final
reviews List<Review>?
JSON array of up to five reviews.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope String?
Indicates the scope of the placeId.
final
types List<String>?
An array of feature types describing the given result.
final
url String?
The URL of the official Google page for this place.
final
utcOffset num?
The number of minutes this place's timezone is offset from UTC.
final
vicinity String?
A simplified address for the place.
final
website String?
The authoritative website for this place.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited