My Business
2.6K members online now
2.6K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

Split hours in Google My Business API

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I wonder if GMB API supports the split hours as below.

For instance, on the same day, a store opens 9:00 am to 12:00 pm and then opens again from 2:00 pm to 5:00 pm.

Please advise.

 

Thanks,

 

Bo

1 Expert replyverified_user

Re: Split hours in Google My Business API

[ Edited ]
Google Employee
# 2
Google Employee

Hi @bosun k,

 

Yes, Google My Business API supports splits hours for a location. The following is a code snippet for adding dual TimePeriod instances for BusinessHours in the Google My Business API:

 

"regularHours": {
     "periods": [
       {
         "openDay": "MONDAY",
         "closeDay": "MONDAY",
         "openTime": "09:00",
         "closeTime": "12:00"
       },
      {
         "openDay": "MONDAY",
         "closeDay": "MONDAY",
         "openTime": "14:00",
         "closeTime": "17:00"
       },
     ]
   }

 

I hope this helps!

 

Thanks,

Shalini