GooglePlacesSwift Framework Reference

Enumerations

The following enumerations are available globally.

  • The content density of the suggestion list.

    Declaration

    Swift

      enum 
     AutocompleteListDensity 
     
    
      extension 
     AutocompleteListDensity 
     : 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     
    
  • AutocompleteSuggestion enum with an associated value that contains the actual suggestion.

    Declaration

    Swift

      enum 
     AutocompleteSuggestion 
     
    
      extension 
     AutocompleteSuggestion 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The icon to display in placeAutocomplete or basicPlaceAutocomplete .

    Declaration

    Swift

      enum 
     AutocompleteUIIcon 
     
    
      extension 
     AutocompleteUIIcon 
     : 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     
    
  • Describes the business status of a place.

    Declaration

    Swift

      enum 
     BusinessStatus 
     
    
      extension 
     BusinessStatus 
     : 
     CaseIterable 
     , 
     Equatable 
     , 
     Hashable 
     , 
     Identifiable 
     
    
  • The fields represent individual days of the week.

    Matches NSDateComponents.weekday index. Refer to https://developer.apple.com/documentation/foundation/nsdatecomponents/1410442-weekday

    Declaration

    Swift

      enum 
     DayOfWeek 
     
    
      extension 
     DayOfWeek 
     : 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     RawRepresentable 
     
    
  • Identifies the type of secondary opening hours.

    HoursType is only set for secondary opening hours (i.e. opening hours returned from Place secondaryOpeningHours). Hours types described here: https://developers.google.com/maps/documentation/places/web-service/details#PlaceOpeningHours-type

    Declaration

    Swift

      enum 
     HoursType 
     
    
      extension 
     HoursType 
     : 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     RawRepresentable 
     
    
  • Describes the current open status of a place.

    Declaration

    Swift

      enum 
     OpenNowStatus 
     
    
      extension 
     OpenNowStatus 
     : 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     RawRepresentable 
     
    
  • The content type of the place details compact view.

    Declaration

    Swift

      enum 
     PlaceDetailsCompactContent 
     
    
      extension 
     PlaceDetailsCompactContent 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The content that can be displayed in the place details full view.

    Declaration

    Swift

      enum 
     PlaceDetailsContent 
     
    
      extension 
     PlaceDetailsContent 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The orientation of the place details view.

    Declaration

    Swift

      enum 
     PlaceDetailsViewOrientation 
     
    
      extension 
     PlaceDetailsViewOrientation 
     : 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     
    
  • The place identifier.

    Declaration

    Swift

      enum 
     PlaceIdentifier 
     
    
  • The properties represent individual information that can be requested for a Place object.

    If no request properties are set, the Place object will be empty with no useful information.

    Please refer to https://developers.google.com/places/ios-sdk/place-data-fields for more details.

    Declaration

    Swift

      enum 
     PlaceProperty 
     
    
      extension 
     PlaceProperty 
     : 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     
    
  • The types of content that should be displayed in the place search view.

    Declaration

    Swift

      enum 
     PlaceSearchContent 
     
    
      extension 
     PlaceSearchContent 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The type of request that should be used to fetch the place search results.

    Declaration

    Swift

      enum 
     PlaceSearchViewRequest 
     
    
      extension 
     PlaceSearchViewRequest 
     : 
     Equatable 
     
    
  • The attribution position in the place view.

    Declaration

    Swift

      enum 
     PlaceViewAttributionPosition 
     
    
      extension 
     PlaceViewAttributionPosition 
     : 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The size of the media in the place view.

    Declaration

    Swift

      enum 
     PlaceViewMediaSize 
     
    
      extension 
     PlaceViewMediaSize 
     : 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The orientation of the place view.

    Declaration

    Swift

      enum 
     PlaceViewOrientation 
     
    
      extension 
     PlaceViewOrientation 
     : 
     Copyable 
     , 
     Equatable 
     , 
     Escapable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The attribution color.

    Declaration

    Swift

      enum 
     PlacesAttributionColor 
     
    
      extension 
     PlacesAttributionColor 
     : 
     Equatable 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • Places error types.

    Declaration

    Swift

      enum 
     PlacesError 
     
    
      extension 
     PlacesError 
     : 
     Equatable 
     , 
     Error 
     , 
     Hashable 
     , 
     Sendable 
     
    
  • The price level of a place.

    Declaration

    Swift

      enum 
     PriceLevel 
     
    
      extension 
     PriceLevel 
     : 
     CaseIterable 
     , 
     Equatable 
     , 
     Hashable 
     , 
     Identifiable 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: