Hi everyone,
I am building a restaurant search app where users can look for restaurants applying filters such as food category, location, etc.
There is one filter I’m challenged by, which is the “open now” property - created so that a user would be able to view only the restaurants that are open now.
Assuming we have the opening hours data arranged the way we like (say, “Restaurants” collection would have a relationship with “Opening Hours” collection, consisting of day of week, start time & end time)…
How would you create this filter?
*note: restaurants can have multiple opening periods during a certain day, e.g.: open on Sundays between 1PM-4PM and 8PM-12AM.
**would also appreciate any tip on how to create the “Opening Hours” table, extracting from the Google Places opening hours. API example,
جزئیات مکان | Places API | Google Developers (alternatively, I could do it manually).
Thank you a lot ![]()
-Amir
