Opening times
Use this object to find places that are open now, or at a set time
The openingConditions
object lets you filter venues based on their open status and availability now, or at specific times. This is crucial for users who need venues that are currently open or will be open when they plan to visit.
Basic structure
Properties
state (optional)
Filter by opening status: "OPEN", "CLOSED", or "ANY". Defaults to "ANY".
atTime (optional)
Check availability at a specific time. Can be "HH:MM" format or ISO date-time.
Opening states
Only return venues that are currently open.
The atTime
property is optional, and if not provided, the search will return
venues that are open now.
Time formats
atTime
is optional and flexible, when provided, it can be a date time, or just a time. If you only provide a time, the search will return venues that are open at that time today.
Real-world examples
Best practice
- Use OPEN state for immediate needs: Users often need venues that are open now
- Specify times for planning: Use atTime when users are planning ahead
- Consider user context: Different times suit different use cases
- Handle time zones: Be aware of time zone differences in your application
Time considerations
Peak dining times
Time | Description |
---|---|
07:00 - 10:00 | Breakfast |
11:30 - 14:00 | Lunch |
18:00 - 21:00 | Dinner |
22:00 - 02:00 | Late night |
Day of week patterns
Day of week | Description |
---|---|
Monday | Business hours, lunch crowds, dinner crowds |
Tuesday | Business hours, lunch crowds, dinner crowds |
Wednesday | Business hours, lunch crowds, dinner crowds |
Thursday | Business hours, lunch crowds, dinner crowds |
Friday | Business hours, lunch crowds, late night |
Saturday | Brunch, dinner, social dining, late night |
Sunday | Brunch, dinner, social dining, late night |