Place API (new) does support special hours
-
Hello everyone,
I love the We’re Open! plugin. However lately I worked a lot with special opening hours. Your FAQ stated that special hours are not available through the Google API, however, this is not true (anymore).
With “Place API (new)” you can receive “regularOpeningHours” and “currentOpeningHours”.
https://developers.google.com/maps/documentation/places/web-service/place-details
Example GET call: https://places.googleapis.com/v1/places/PLACE_ID?fields=regularOpeningHours%2CcurrentOpeningHours&key=API_KEY
currentOpeningHours gives you the next 7 days, modified with special hours, and also tells you which days were modified.
You can also request “regularSecondaryOpeningHours” and “currentSecondaryOpeningHours” which will provide information like dinner or drive-in hours.
I would love to have the currentOpeningHours included.
(And a way to set how often to grab the data from Google (every minute, hourly, daily, monthly))
Thanks for reading, and please let me know if I can help you in any way. I can provide you i.e. with an api key and some credits for testing.
- The topic ‘Place API (new) does support special hours’ is closed to new replies.