Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines information about the opening hours of a Place.

Hierarchy

  • PlaceOpeningHours

Index

Properties

open_now?: boolean

Whether the Place is open at the current time.

deprecated

open_now is deprecated as of November 2019. Use the google.maps.places.PlaceOpeningHours.isOpen method from a google.maps.places.PlacesService.getDetails result instead. See https://goo.gle/js-open-now

Opening periods covering for each day of the week, starting from Sunday, in chronological order. Days in which the Place is not open are not included. Only available with google.maps.places.PlacesService.getDetails.

weekday_text?: string[]

An array of seven strings representing the formatted opening hours for each day of the week. The Places Service will format and localize the opening hours appropriately for the current language. The ordering of the elements in this array depends on the language. Some languages start the week on Monday while others start on Sunday. Only available with google.maps.places.PlacesService.getDetails. Other calls may return an empty array.

Methods

  • isOpen(date?: Date): undefined | boolean

Generated using TypeDoc