GooglePlaces Framework Reference

  • GMSPeriod represents the operational hours of a place, defined by an opening and closing time.

  • It includes anopenEvent, which is mandatory and indicates the start time of the operational period.

  • AcloseEvent is optional and specifies the closing time; if absent, it implies 24-hour operation indicated by "0000" inopenEvent's time.

GMSPeriod

@interfaceGMSPeriod:NSObject

A class representing a period of time where the place is operating for aGMSPlace.It contains an openGMSEvent and an optional closeGMSEvent. The close event will be nilif the period is open 24hrs.

  • The open event of this period.EachGMSPeriod is guaranteed to have an open event.If the period is representing open 24hrs, it will only have the openEvent with time as “0000”.

    Declaration

    Swift

    varopenEvent:GMSEvent{get}

    Objective-C

    @property(nonatomic,strong,readonly)GMSEvent*_NonnullopenEvent;
  • The close event of this period. Can be nil if period is open 24hrs.

    Declaration

    Swift

    varcloseEvent:GMSEvent?{get}

    Objective-C

    @property(nonatomic,strong,readonly,nullable)GMSEvent*closeEvent;

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.