Home > Software engineering >  Extracting opening hours of geocoded businesses from Google search
Extracting opening hours of geocoded businesses from Google search

Time:09-27

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?

enter image description here

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.

  • Related