FetchPlaceRequest
struct FetchPlaceRequest
extension FetchPlaceRequest : Sendable
The request for a specific placeID and place properties to include in the Place response.
-
Request object to use with
PlacesClient
to fetch a place.Read more about Place Data Fields.
Declaration
Swift
init(placeID: String, placeProperties: [PlaceProperty], sessionToken: AutocompleteSessionToken? = nil)
Parameters
placeID
The ID of the place to be requested.
placeProperties
The properties of the place to be requested. Must not be empty. An empty list will result in an error when trying to send the request.
sessionToken
The ‘AutocompleteSessionToken’ to associate the request with a billing session.
-
Place ID of the place being requested.
Declaration
Swift
var placeID: String { get }
-
Place properties to include in the Place response.
Declaration
Swift
var placeProperties: [PlaceProperty] { get }
-
Session token to associate the request to a billing session.
Declaration
Swift
var sessionToken: AutocompleteSessionToken? { get }