googlemaps / ios-places-sdk

Apache License 2.0
10 stars 5 forks source link

The best way to know if a venue is open 24 hours using periods ? #8

Open shawn-frank opened 7 months ago

shawn-frank commented 7 months ago

This is not really a bug but the documentation isn't really clear on this and not sure the best forum to pursue this.

I am using the places iOS SDK to get various different places and display the opening hours of a business and for the most part this works great.

I am using GMSPeriod to display the opening hours, the part that I am struggling with is knowing if a venue is open for 24 hours or not.

The documentation for GMSPeriod states

If the period is representing open 24hrs, it will only have the openEvent with time as "0000".

With this statement, I was expecting it to give me an openEvent with a value of 0000 for each day, however, what I can see is only one period when a business is open for 24 hours

image

Shouldn't we get a period for every day ?

What if a business is open for 24 hours on a specific day and regular hours on another day - how would the response differ ?

wangela commented 7 months ago

If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.

@shawn-frank Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.