Venue objects represent a restaurant or bar in AllTheTables.
AllTheTables has already indexed every bookable restaurant and bar. To place a booking at a venue, find the venue record in AllTheTables first.
You can then use venues to place bookings.
Venue Object
Property | Type | Description |
---|---|---|
id | string | The unique identifier of the venue. |
name | string | The name of the venue. |
description | string | A description of the venue. |
images | { url: string }[] | A list of images related to the venue. |
evaluation.score | number | The score or rating of the venue. |
evaluation.reviews | { average?: number, count: number } | The average review score and count of reviews. |
featuredIn | { id: string, name: string, position?: number }[] | A list of features for the venue. |
contact.website | string | The venue's website URL (optional). |
contact.phone | string | The venue's contact phone number (optional). |
contact.email | string | The venue's contact email address (optional). |
social.twitter | string | The venue's Twitter handle (optional). |
social.instagram | string | The venue's Instagram handle (optional). |
social.facebook | string | The venue's Facebook handle (optional). |
location.timezone | string | The venue's timezone. |
location.geo.latitude | number | The geographical latitude of the venue. |
location.geo.longitude | number | The geographical longitude of the venue. |
location.address.line1 | string | The first line of the venue's address (optional). |
location.address.line2 | string | The second line of the venue's address (optional). |
location.address.town | string | The town where the venue is located (optional). |
location.address.street | string | The street address of the venue (optional). |
location.address.postCode | string | The venue's postal code (optional). |
location.address.countryCode | Country | The venue's country code. |
bookingFlow.type | BookingFlowType | The type of booking flow for the venue. |
bookingFlow.websiteAction | { url: string, label: string } | The action to be taken on the booking website. |
cuisineFilters | { id: string, name: string, cuisines: { id: string, name: string }[] }[] | List of cuisine filters for the venue. |
openingTimes | { id: string, day: DayOfWeek, periods: { startHHmm: string, finishHHmm: string }[] }[] | The opening times of the venue. |