Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Restaurant Section Home

We have home sections with four data types:

  1. featured_restaurants: this is the most common restaurant data type. It is used by sections 1, 3, 4, 6, 8, 9, 11, 12, and 13.
  2. branches: used in section 5 to show popular brands. Clicking this section usually opens a group landing page or a search page. The long-term plan is to auto-generate the group landing page for every branch.
  3. restaurant_tags: used in section 7 to show tags such as cuisine, location, or promotional tags.
  4. restaurants: used in section 14 to show a single restaurant. This was originally used for promotions such as free delivery within 30 km, based on the user’s location.

Sections 2, 10, and the old slider-based section 4 are not currently active on the home page.

How to use the API

https://app.clickup.com/9003122396/docs/8ca1fpw-15242/8ca1fpw-16242

You can use this API from the Insomnia home folder with the default payload:

{
	"page": {
		"number": 1,
		"size": 10
	},
	"minor_version": "3"
}

For section 14, which requires the user’s location, use this payload:

{
	"page": {
		"number": 1,
		"size": 10
	},
	"location": {
		"lat": 13.7563,
		"lon": 100.5018
	},
	"minor_version": "3"
}

We also have an API to get the list of featured_restaurants sections:

{{base_api}}/homes/sections.json

This API can be used to map group landing page sections based on the slug.