PlaceSuggestion

@Serializable
data class PlaceSuggestion(val placeId: String, val name: String?, val addressLine1: String?, val city: String?, val stateProvince: String?, val postalCode: String?, val latitude: Double?, val longitude: Double?)

A place the member can pick while nominating, carrying the canonical Google place id the nomination is stored against - independent of whichever map SDK is drawing. Returned by Locations.searchPlaces and Locations.getRecentPlaceSearches.

Copy a picked suggestion into the LocationNomination: placeId as its googlePlaceId, plus the address and the coordinates.

Also the shape persisted for the member's recent place searches (see Locations.rememberPlaceSearch), hence Serializable.

Constructors

Link copied to clipboard
constructor(placeId: String, name: String?, addressLine1: String?, city: String?, stateProvince: String?, postalCode: String?, latitude: Double?, longitude: Double?)

Properties

Link copied to clipboard

Address line, or null.

Link copied to clipboard
val city: String?

City, or null.

Link copied to clipboard

Latitude, or null.

Link copied to clipboard

Longitude, or null.

Link copied to clipboard
val name: String?

Place display name.

Link copied to clipboard

Canonical place id for LocationNomination.googlePlaceId.

Link copied to clipboard

Postal code, or null.

Link copied to clipboard

State or province, or null.