Class OpeningHours

  • All Implemented Interfaces:
    java.io.Serializable

    public class OpeningHours
    extends java.lang.Object
    implements java.io.Serializable
    Opening hours for a Place Details result. Please see Place Details Results for more details.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OpeningHours.Period
      The opening hours for a Place for a single day.
      static class  OpeningHours.SpecialDay
      An indicator of special hours for a Place for a single day.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Boolean openNow
      Whether the place is open at the current time.
      OpeningHours.Period[] periods
      Opening periods covering seven days, starting from Sunday, in chronological order.
      OpeningHours.SpecialDay[] specialDays
      An array of up to seven entries corresponding to the next seven days.
      java.lang.String type
      A type string used to identify the type of secondary hours (for example, DRIVE_THROUGH, HAPPY_HOUR, DELIVERY, TAKEOUT, KITCHEN, BREAKFAST, LUNCH, DINNER, BRUNCH, PICKUP, SENIOR_HOURS).
      java.lang.String[] weekdayText
      The formatted opening hours for each day of the week, as an array of seven strings; for example, "Monday: 8:30 am – 5:30 pm".
    • Constructor Summary

      Constructors 
      Constructor Description
      OpeningHours()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • openNow

        public java.lang.Boolean openNow
        Whether the place is open at the current time.

        Note: this field will be null if it isn't present in the response.

      • periods

        public OpeningHours.Period[] periods
        Opening periods covering seven days, starting from Sunday, in chronological order.
      • specialDays

        public OpeningHours.SpecialDay[] specialDays
        An array of up to seven entries corresponding to the next seven days.
      • type

        public java.lang.String type
        A type string used to identify the type of secondary hours (for example, DRIVE_THROUGH, HAPPY_HOUR, DELIVERY, TAKEOUT, KITCHEN, BREAKFAST, LUNCH, DINNER, BRUNCH, PICKUP, SENIOR_HOURS). Set for secondary_opening_hours only.
      • weekdayText

        public java.lang.String[] weekdayText
        The formatted opening hours for each day of the week, as an array of seven strings; for example, "Monday: 8:30 am – 5:30 pm".
    • Constructor Detail

      • OpeningHours

        public OpeningHours()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object