AI-generated Key Takeaways
-
GMSPlaceHoursTypeis an enum used to identify the type of secondary opening hours for a place, such as breakfast, lunch, or delivery. -
It is only used for secondary opening hours, which are returned from the
GMSPlacesecondaryOpeningHoursproperty. -
The possible values for
GMSPlaceHoursTypeinclude access, breakfast, brunch, lunch, dinner, senior hours, pickup, takeout, delivery, kitchen, online service hours, drive-through, happy hour, and unknown. -
These types are further described in the Google Maps Places API documentation.
-
Developers can use
GMSPlaceHoursTypeto determine the specific type of secondary opening hours associated with a place.
GMSPlaceHoursType
enum GMSPlaceHoursType : 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
case access = 0Objective-C
GMSPlaceHoursTypeAccess -
Declaration
Swift
case breakfast = 1Objective-C
GMSPlaceHoursTypeBreakfast -
Declaration
Swift
case brunch = 2Objective-C
GMSPlaceHoursTypeBrunch -
Declaration
Swift
case lunch = 3Objective-C
GMSPlaceHoursTypeLunch -
Declaration
Swift
case dinner = 4Objective-C
GMSPlaceHoursTypeDinner -
Declaration
Swift
case seniorHours = 5Objective-C
GMSPlaceHoursTypeSeniorHours -
Declaration
Swift
case pickup = 6Objective-C
GMSPlaceHoursTypePickup -
Declaration
Swift
case takeout = 7Objective-C
GMSPlaceHoursTypeTakeout -
Declaration
Swift
case delivery = 8Objective-C
GMSPlaceHoursTypeDelivery -
Declaration
Swift
case kitchen = 9Objective-C
GMSPlaceHoursTypeKitchen -
Declaration
Swift
case onlineServiceHours = 10Objective-C
GMSPlaceHoursTypeOnlineServiceHours -
Declaration
Swift
case driveThrough = 11Objective-C
GMSPlaceHoursTypeDriveThrough -
Declaration
Swift
case happyHour = 12Objective-C
GMSPlaceHoursTypeHappyHour -
Declaration
Swift
case unknown = 13Objective-C
GMSPlaceHoursTypeUnknown