GooglePlacesSwift Framework Reference

  • ThePlacesClient class is the primary interface for interacting with the Places SDK, enabling functionalities like searching for places and retrieving place details.

  • Access thePlacesClient through the shared instancePlacesClient.shared.

  • Ensure allPlacesClient methods 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

    finalclassPlaceDetailsResult
    extensionPlaceDetailsResult:ObservableObject
  • Main interface to the Places SDK, used for searching and getting details about places.

    This type should be accessed throughPlacesClient.shared.

    PlacesClient methods should only be called from the main thread. Calling these methods fromanother thread will result in an exception or undefined behavior.

    Declaration

    Swift

    finalclassPlacesClient
    extensionPlacesClient:PlacesClientProtocol,Sendable

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.