GooglePlacesSwift Framework Reference Stay organized with collections Save and categorize content based on your preferences.
AI-generated Key Takeaways
The
PlacesClientclass is the primary interface for interacting with the Places SDK, enabling functionalities like searching for places and retrieving place details.Access the
PlacesClientthrough the shared instancePlacesClient.shared.Ensure all
PlacesClientmethods are exclusively called from the main thread to avoid exceptions or unexpected behavior.
Classes
The following classes are available globally.
The place details UI widget result.
Declaration
Swift
finalclassPlaceDetailsResultextensionPlaceDetailsResult:ObservableObjectMain interface to the Places SDK, used for searching and getting details about places.
This type should be accessed through
PlacesClient.shared.PlacesClientmethods should only be called from the main thread. Calling these methods fromanother thread will result in an exception or undefined behavior.Declaration
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.