GooglePlacesSwift Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Classes
The following classes are available globally.
-
The place details UI widget result.
Declaration
Swift
final class PlaceDetailsResult
extension PlaceDetailsResult : ObservableObject
-
Main interface to the Places SDK, used for searching and getting details about places.
This type should be accessed through PlacesClient.shared
.
PlacesClient
methods should only be called from the main thread. Calling these methods from
another thread will result in an exception or undefined behavior.
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\u003eThe \u003ccode\u003ePlacesClient\u003c/code\u003e class is the primary interface for interacting with the Places SDK, enabling functionalities like searching for places and retrieving place details.\u003c/p\u003e\n"],["\u003cp\u003eAccess the \u003ccode\u003ePlacesClient\u003c/code\u003e through the shared instance \u003ccode\u003ePlacesClient.shared\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEnsure all \u003ccode\u003ePlacesClient\u003c/code\u003e methods are exclusively called from the main thread to avoid exceptions or unexpected behavior.\u003c/p\u003e\n"]]],["The core content introduces the `PlacesClient` class, the main interface for the Places SDK, used for place searching and detail retrieval. It should be accessed via `PlacesClient.shared`. Key actions involve using its methods to interact with place data. Critically, all `PlacesClient` methods must be called exclusively from the main thread; using them from other threads will cause errors or unpredictable results. It's defined as a final class and conforms to `PlacesClientProtocol`.\n"],null,["# GooglePlacesSwift Framework Reference\n\nClasses\n=======\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n ### [PlaceDetailsResult](/maps/documentation/places/ios-sdk/reference/swift/Classes/PlaceDetailsResult)\n\n `\n ` \n The place details UI widget result. \n\n #### Declaration\n\n Swift \n\n final class PlaceDetailsResult\n\n extension PlaceDetailsResult : ObservableObject\n\n- `\n ``\n ``\n `\n\n ### [PlacesClient](/maps/documentation/places/ios-sdk/reference/swift/Classes/PlacesClient)\n\n `\n ` \n Main interface to the Places SDK, used for searching and getting details about places.\n\n This type should be accessed through [PlacesClient.shared](/maps/documentation/places/ios-sdk/reference/swift/Classes/PlacesClient#/s:17GooglePlacesSwift0B6ClientC6sharedACvpZ).\n\n `PlacesClient` methods should only be called from the main thread. Calling these methods from\n another thread will result in an exception or undefined behavior. \n\n #### Declaration\n\n Swift \n\n final class PlacesClient\n\n extension PlacesClient : /maps/documentation/places/ios-sdk/reference/swift/Protocols/PlacesClientProtocol, Sendable"]]