GooglePlaces Framework Reference

Enumerations

The following enumerations are available globally.

  • The type filters that may be applied to an autocomplete request to restrict results to different types.

    Declaration

    Swift

      enum 
     GMSPlacesAutocompleteTypeFilter 
     : 
     Int 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSPlacesAutocompleteTypeFilter 
     : 
     NSInteger 
     {} 
     
    
  • Describes the current open status of a place.

    Declaration

    Swift

      enum 
     GMSOpenNowStatus 
     : 
     Int 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSOpenNowStatus 
     : 
     NSInteger 
     {} 
     
    
  • Identifies the type of secondary opening hours.

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

    Declaration

    Swift

      enum 
     GMSPlaceHoursType 
     : 
     Int 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSPlaceHoursType 
     : 
     NSInteger 
     {} 
     
    
  • 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 
     GMSDayOfWeek 
     : 
     UInt 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSDayOfWeek 
     : 
     NSUInteger 
     {} 
     
    
  • Describes the price level of a place.

    Declaration

    Swift

      enum 
     GMSPlacesPriceLevel 
     : 
     Int 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSPlacesPriceLevel 
     : 
     NSInteger 
     {} 
     
    
  • Describes the open status of a place.

    Declaration

    Swift

      enum 
     GMSPlaceOpenStatus 
     : 
     Int 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSPlaceOpenStatus 
     : 
     NSInteger 
     {} 
     
    
  • Describes the business status of a place.

    Declaration

    Swift

      enum 
     GMSPlacesBusinessStatus 
     : 
     Int 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSPlacesBusinessStatus 
     : 
     NSInteger 
     {} 
     
    
  • Describes whether a place’s boolean attribute is available or not.

    Declaration

    Swift

      enum 
     GMSBooleanPlaceAttribute 
     : 
     Int 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSBooleanPlaceAttribute 
     : 
     NSInteger 
     {} 
     
    
  • The fields represent individual information that can be requested for a GMSPlace object. If no request fields are set, the GMSPlace object will be empty with no useful information.

    Note: GMSPlaceFieldPhoneNumber , GMSPlaceFieldWebsite and GMSPlaceFieldAddressComponents are not supported for GMSPlaceLikelihoodList place objects. Please refer to https://developers.google.com/places/ios-sdk/place-data-fields for more details.

    Declaration

    Swift

      struct 
     GMSPlaceField 
     : 
     OptionSet 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSPlaceField 
     : 
     uint64_t 
     {} 
     
    
  • How results will be ranked in the response.

    Declaration

    Swift

      enum 
     GMSPlaceSearchByTextRankPreference 
     : 
     Int 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSPlaceSearchByTextRankPreference 
     : 
     NSInteger 
     {} 
     
    
  • How results will be ranked in the response.

    Declaration

    Swift

      enum 
     GMSPlaceSearchNearbyRankPreference 
     : 
     Int 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSPlaceSearchNearbyRankPreference 
     : 
     NSInteger 
     {} 
     
    
  • Error codes for kGMSPlacesErrorDomain .

    Declaration

    Swift

      enum 
     GMSPlacesErrorCode 
     : 
     Int 
     , 
     @unchecked 
     Sendable 
     
    

    Objective-C

      enum 
     GMSPlacesErrorCode 
     : 
     NSInteger 
     {} 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: