GooglePlacesSwift Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
FetchPlaceRequest
struct FetchPlaceRequest
extension FetchPlaceRequest : Sendable
The request for a specific placeID and place properties to include in the Place response.
-
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.
-
Session token to associate the request to a billing session.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eFetchPlaceRequest\u003c/code\u003e is a struct used to request information about a specific place using its placeID.\u003c/p\u003e\n"],["\u003cp\u003eIt allows specifying desired place properties to be included in the response for efficient data retrieval.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, a session token can be provided to associate the request with a billing session for usage tracking.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize \u003ccode\u003eFetchPlaceRequest\u003c/code\u003e with \u003ccode\u003ePlacesClient\u003c/code\u003e to retrieve Place details, leveraging available Place Data Fields.\u003c/p\u003e\n"]]],["`FetchPlaceRequest` is a struct used to request a specific place. It requires a `placeID` to identify the place and `placeProperties` to specify the data to retrieve. An optional `sessionToken` can link the request to a billing session. The struct is initialized with these three parameters and provides read-only access to each. This request object is used with `PlacesClient` to obtain detailed information about a given place.\n"],null,["# GooglePlacesSwift Framework Reference\n\nFetchPlaceRequest\n=================\n\n struct FetchPlaceRequest\n\n extension FetchPlaceRequest : Sendable\n\nThe request for a specific placeID and place properties to include in the Place response.\n- `\n ``\n ``\n `\n\n ### [init(placeID:placeProperties:sessionToken:)](#/s:17GooglePlacesSwift17FetchPlaceRequestV7placeID0G10Properties12sessionTokenACSS_SayAA0E8PropertyOGAA019AutocompleteSessionK0VSgtcfc)\n\n `\n ` \n Request object to use with [PlacesClient](../Classes/PlacesClient.html) to fetch a place.\n\n Read more about [Place Data Fields](https://developers.google.com/maps/documentation/places/ios-sdk/place-data-fields). \n\n #### Declaration\n\n Swift \n\n init(placeID: String, placeProperties: [../Enums/PlaceProperty.html], sessionToken: ../Structs/AutocompleteSessionToken.html? = nil)\n\n #### Parameters\n\n |-------------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*placeID*` ` | The ID of the place to be requested. |\n | ` `*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. |\n | ` `*sessionToken*` ` | The 'AutocompleteSessionToken' to associate the request with a billing session. |\n\n- `\n ``\n ``\n `\n\n ### [placeID](#/s:17GooglePlacesSwift17FetchPlaceRequestV7placeIDSSvp)\n\n `\n ` \n Place ID of the place being requested. \n\n #### Declaration\n\n Swift \n\n var placeID: String { get }\n\n- `\n ``\n ``\n `\n\n ### [placeProperties](#/s:17GooglePlacesSwift17FetchPlaceRequestV15placePropertiesSayAA0E8PropertyOGvp)\n\n `\n ` \n Place properties to include in the Place response. \n\n #### Declaration\n\n Swift \n\n var placeProperties: [../Enums/PlaceProperty.html] { get }\n\n- `\n ``\n ``\n `\n\n ### [sessionToken](#/s:17GooglePlacesSwift17FetchPlaceRequestV12sessionTokenAA019AutocompleteSessionH0VSgvp)\n\n `\n ` \n Session token to associate the request to a billing session. \n\n #### Declaration\n\n Swift \n\n var sessionToken: ../Structs/AutocompleteSessionToken.html? { get }"]]