Get estimated wait time
GET/v1/partner/locations/:location_id/wait-time
Retrieves and calculates the estimated wait time range for a given location. The response includes a formatted wait time range based on the current estimated wait time and the optional range_minutes parameter. If the location is closed, it will return 'Currently Closed'. If the wait time is unavailable, it will return 'Unavailable'.
Token scope:{'scope': 'read:locations'}
Request​
Path Parameters
location_id Location Idrequired
Query Parameters
range_minutes Range Minutes
Default value: 15
Optional. Range in minutes to calculate the wait time interval around the estimated wait time.
Responses​
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
estimated_wait_time_range Estimated Wait Time Range (string)required
The estimated wait time for the location, formatted as a string.
{
"estimated_wait_time_range": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...