GooglePlacesSwift Framework Reference

  • This page provides a comprehensive list of structures available globally within the Google Places SDK for iOS.

  • Each structure is accompanied by a brief description and a declaration in Swift.

  • These structures are essential for interacting with various functionalities of the Places SDK, such as place details, autocomplete, photos, and opening hours.

  • Developers can use these structures to build location-aware features into their iOS applications.

  • For detailed information on each structure, click on the corresponding link provided.

Structures

The following structures are available globally.

  • Information about the accessibility options a place offers.

    Declaration

    Swift

      struct 
     AccessibilityOptions 
     
    
  • Represents a component of an address, e.g., street number, postcode, city, etc.

    Declaration

    Swift

      struct 
     AddressComponent 
     
    
      extension 
     AddressComponent 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Declaration

    Swift

      struct 
     AuthorAttribution 
     
    
      extension 
     AuthorAttribution 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Represents a set of restrictions that may be applied to autocomplete requests. This allows customization of autocomplete suggestions to only those places that are of interest.

    Declaration

    Swift

      struct 
     AutocompleteFilter 
     
    
      extension 
     AutocompleteFilter 
     : 
     Sendable 
     
    
  • This class represents a suggestion of a full query based on a partially typed string. */

    Declaration

    Swift

      struct 
     AutocompletePlaceSuggestion 
     
    
      extension 
     AutocompletePlaceSuggestion 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The request for autocomplete suggestions based on a given partial query along with additional configuring properties.

    Declaration

    Swift

      struct 
     AutocompleteRequest 
     
    
      extension 
     AutocompleteRequest 
     : 
     Sendable 
     
    
  • This class represents an session token to uniquely identify an series of queries to the Google Places API Services for fetching place predictions for a partial search string.

    Declaration

    Swift

      struct 
     AutocompleteSessionToken 
     
    
      extension 
     AutocompleteSessionToken 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • UI customizations for the Autocomplete place picker.

    Declaration

    Swift

      struct 
     AutocompleteUICustomization 
     
    
  • CircularCoordinateRegion represents a circular bounding region on the Earth’s surface. CircularCoordinateRegion is immutable and can’t be modified after construction.

    Declaration

    Swift

      struct 
     CircularCoordinateRegion 
     
    
      extension 
     CircularCoordinateRegion 
     : 
      CoordinateRegion 
     
     , 
      CoordinateRegionBias 
     
     , 
      CoordinateRegionRestriction 
     
     , 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A class that represents an EV charging connector aggregation.

    Declaration

    Swift

      struct 
     ConnectorAggregation 
     
    
      extension 
     ConnectorAggregation 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A struct that represents a place’s consumer alert.

    Declaration

    Swift

      struct 
     ConsumerAlert 
     
    
      extension 
     ConsumerAlert 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A struct that represents the details of a consumer alert.

    Declaration

    Swift

      struct 
     ConsumerAlertDetails 
     
    
      extension 
     ConsumerAlertDetails 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A struct that represents a content block.

    Declaration

    Swift

      struct 
     ContentBlock 
     
    
      extension 
     ContentBlock 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A struct that represents the summary of amenities near an EV charging station.

    Declaration

    Swift

      struct 
     EVChargeAmenitySummary 
     
    
      extension 
     EVChargeAmenitySummary 
     : 
      AISummary 
     
     , 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A struct that represents a place’s EV charging options.

    Declaration

    Swift

      struct 
     EVChargeOptions 
     
    
      extension 
     EVChargeOptions 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A class representing a open/close event in Period .

    Declaration

    Swift

      struct 
     Event 
     
    
      extension 
     Event 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The request for a specific placeID and place properties to include in the Place response.

    Declaration

    Swift

      struct 
     FetchPhotoRequest 
     
    
      extension 
     FetchPhotoRequest 
     : 
     Sendable 
     
    
  • The request for a specific placeID and place properties to include in the Place response.

    Declaration

    Swift

      struct 
     FetchPlaceRequest 
     
    
      extension 
     FetchPlaceRequest 
     : 
     Sendable 
     
    
  • A struct that represents a place’s generative summary.

    Declaration

    Swift

      struct 
     GenerativeSummary 
     
    
      extension 
     GenerativeSummary 
     : 
      AISummary 
     
     , 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Represents an IsPlaceOpenRequest definition to be sent via PlacesClient.

    Declaration

    Swift

      struct 
     IsPlaceOpenRequest 
     
    
      extension 
     IsPlaceOpenRequest 
     : 
     Sendable 
     
    
  • The response from the isPlaceOpen method.

    Declaration

    Swift

      struct 
     IsPlaceOpenResponse 
     
    
      extension 
     IsPlaceOpenResponse 
     : 
     Sendable 
     
    
  • A struct that represents a summary of a neighborhood.

    Declaration

    Swift

      struct 
     NeighborhoodSummary 
     
    
      extension 
     NeighborhoodSummary 
     : 
      AISummary 
     
     , 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A type to handle storing and accessing opening hours information for Place .

    Declaration

    Swift

      struct 
     OpeningHours 
     
    
      extension 
     OpeningHours 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A struct that represents pagination in a search response.

    Declaration

    Swift

      struct 
     Pagination 
     < 
     Response 
     > 
     where 
     Response 
     : 
      SearchResponse 
     
     
    
      extension 
     Pagination 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A struct that represents parking options at a place.

    Declaration

    Swift

      struct 
     ParkingOptions 
     
    
      extension 
     ParkingOptions 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A type representing a period of time where the place is operating for a Place .

    Contains an open Event and an optional close Event . The close event will be nil if the period is open 24hrs.

    Declaration

    Swift

      struct 
     Period 
     
    
      extension 
     Period 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The metadata corresponding to a single photo associated with a place.

    Declaration

    Swift

      struct 
     Photo 
     
    
      extension 
     Photo 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Represents a particular physical place.

    A Place encapsulates information about a physical location, including its name, location, and any other information we might have about it. This class is immutable.

    Declaration

    Swift

      struct 
     Place 
     
    
      extension 
     Place 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
      PlaceProtocol 
     
     , 
     Sendable 
     
    
  • The configuration of the place details compact view.

    Declaration

    Swift

      struct 
     PlaceDetailsCompactConfiguration 
     
    
      extension 
     PlaceDetailsCompactConfiguration 
     : 
     Sendable 
     
    
  • Declaration

    Swift

      @MainActor 
     struct 
     PlaceDetailsCompactView 
     
    
      extension 
     PlaceDetailsCompactView 
     : 
     Sendable 
     , 
     View 
     
    
  • Configuration for the Place Details component.

    Declaration

    Swift

      struct 
     PlaceDetailsConfiguration 
     
    
      extension 
     PlaceDetailsConfiguration 
     : 
     Sendable 
     
    
  • The place details component query.

    Declaration

    Swift

      struct 
     PlaceDetailsQuery 
     
    
      extension 
     PlaceDetailsQuery 
     : 
     Equatable 
     
    
  • The view for the place details component.

    Declaration

    Swift

      @MainActor 
     @preconcurrency 
     struct 
     PlaceDetailsView 
     
    
      extension 
     PlaceDetailsView 
     : 
     Sendable 
     , 
     View 
     
    
  • The configuration of the place search view.

    Declaration

    Swift

      struct 
     PlaceSearchConfiguration 
     
    
      extension 
     PlaceSearchConfiguration 
     : 
     Sendable 
     
    
  • Declaration

    Swift

      @MainActor 
     struct 
     PlaceSearchView 
     
    
      extension 
     PlaceSearchView 
     : 
     Sendable 
     , 
     View 
     
    
  • Declaration

    Swift

      struct 
     PlaceType 
     
    
      extension 
     PlaceType 
     : 
     Equatable 
     , 
     Hashable 
     , 
     RawRepresentable 
     , 
     Sendable 
     
    
  • The material attribution.

    Declaration

    Swift

      struct 
     PlacesMaterialAttribution 
     
    
      extension 
     PlacesMaterialAttribution 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Material color tokens.

    Declaration

    Swift

      struct 
     PlacesMaterialColor 
     
    
      extension 
     PlacesMaterialColor 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Material font tokens.

    Declaration

    Swift

      struct 
     PlacesMaterialFont 
     
    
      extension 
     PlacesMaterialFont 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Measurement tokens.

    Declaration

    Swift

      struct 
     PlacesMaterialMeasurement 
     
    
      extension 
     PlacesMaterialMeasurement 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Shape-related tokens.

    Declaration

    Swift

      struct 
     PlacesMaterialShape 
     
    
      extension 
     PlacesMaterialShape 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • General theming.

    Declaration

    Swift

      struct 
     PlacesMaterialTheme 
     
    
      extension 
     PlacesMaterialTheme 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A class containing the Plus codes representation for a location.

    See https://plus.codes/ for more details.

    Declaration

    Swift

      struct 
     PlusCode 
     
    
      extension 
     PlusCode 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • RectangularCoordinateRegion represents a rectangular bounding box on the Earth’s surface. RectangularCoordinateRegion is immutable and can’t be modified after construction.

    Declaration

    Swift

      struct 
     RectangularCoordinateRegion 
     
    
      extension 
     RectangularCoordinateRegion 
     : 
      CoordinateRegion 
     
     , 
      CoordinateRegionBias 
     
     , 
      CoordinateRegionRestriction 
     
     , 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Declaration

    Swift

      struct 
     Review 
     
    
      extension 
     Review 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • A struct that represents an AI-generated summary of the place using user reviews.

    Declaration

    Swift

      struct 
     ReviewSummary 
     
    
      extension 
     ReviewSummary 
     : 
      AISummary 
     
     , 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Declaration

    Swift

      struct 
     SearchByTextRequest 
     
    
      extension 
     SearchByTextRequest 
     : 
     Equatable 
     , 
     Sendable 
     
    
  • The response object for the searchByText method.

    Declaration

    Swift

      struct 
     SearchByTextResponse 
     
    
      extension 
     SearchByTextResponse 
     : 
      SearchResponse 
     
     , 
     Sendable 
     
    
  • Declaration

    Swift

      struct 
     SearchNearbyRequest 
     
    
      extension 
     SearchNearbyRequest 
     : 
     Equatable 
     , 
     Sendable 
     
    
  • The response object for the searchNearby method.

    Declaration

    Swift

      struct 
     SearchNearbyResponse 
     
    
      extension 
     SearchNearbyResponse 
     : 
      SearchResponse 
     
     , 
     Sendable 
     
    
  • Represents information on a particular day which may have opening hours different than normal.

    Declaration

    Swift

      struct 
     SpecialDay 
     
    
      extension 
     SpecialDay 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Time represents time in hours and minutes in a 24hr clock.

    Declaration

    Swift

      struct 
     Time 
     
    
      extension 
     Time 
     : 
     Copyable 
     , 
     CustomStringConvertible 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: