I have a list of 1800 businesses with lat and long coordinates. I am wanting to extract the opening hours for each of these businesses from the information stored by Google Maps. Is there an easy way to use my data to retrieve this information?
CodePudding user response:
I just found this:
PlaceOpeningHours
An object describing the opening hours of a place.
Field Required Type Description
open_now required boolean
A boolean value indicating if the place is open at the current time.
periods optional Array<PlaceOpeningHoursPeriod>
An array of opening periods covering seven days, starting from Sunday, in chronological order.
See PlaceOpeningHoursPeriod for more information.
weekday_text optional Array<string>
A boolean value indicating if the place is open at the current time.