Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check any available options for Google Business Profile API #55

Open
mentalcaries opened this issue Jul 7, 2023 · 1 comment
Open
Assignees
Labels
research Further information is requested

Comments

@mentalcaries
Copy link
Contributor

In particular, we want to see if the API can provide information regarding:

  • opening/closing dates and hours (as set by the business itself)
  • public holidays
@mentalcaries mentalcaries added the research Further information is requested label Jul 7, 2023
@mentalcaries mentalcaries self-assigned this Jul 7, 2023
@mentalcaries
Copy link
Contributor Author

mentalcaries commented Jul 19, 2023

Google's Places API allows for requests to be made and returns two useful sets of information:

Format returned:

{ "html_attributions": [], "result": { "opening_hours": { "open_now": false, "periods": [ { "close": { "day": 1, "time": "1500" }, "open": { "day": 1, "time": "0800" } }, { "close": { "day": 2, "time": "1500" }, "open": { "day": 2, "time": "0800" } }, { "close": { "day": 3, "time": "1500" }, "open": { "day": 3, "time": "0800" } }, { "close": { "day": 4, "time": "1200" }, "open": { "day": 4, "time": "0800" } }, { "close": { "day": 5, "time": "1300" }, "open": { "day": 5, "time": "0800" } }, { "close": { "day": 6, "time": "1500" }, "open": { "day": 6, "time": "0800" } } ], "weekday_text": [ "Monday: 8:00 AM – 3:00 PM", "Tuesday: 8:00 AM – 3:00 PM", "Wednesday: 8:00 AM – 3:00 PM", "Thursday: 8:00 AM – 12:00 PM", "Friday: 8:00 AM – 1:00 PM", "Saturday: 8:00 AM – 3:00 PM", "Sunday: Closed" ] } }, "status": "OK" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant