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."],[],["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,[]]