Restaurant Search by Location
Search restaurants by term and geolocation
The restaurantSearchByLocation query searches restaurants that match your query term and provided geo location(lat, lon), it returns two lists of results onPlan and otherResults, each containing a list of Restaurant objects
onPlan represent restaurants that contains at least one menu items that complies with the user's program and all kind of preferences and restrictions.
otherResults represent restaurants that don't contain any suggested menu items based on non-compliance with the user's program or the user's preferences and restrictions.
Required Arguments
Argument | Type | Required | Description |
| query | False | Name or keyword of the resturant name. It is possibe to add more than one value. The query is case insensitive. For example, salad or Salad should retreive the same information. |
| location | True | Latitude where the restaurant is located |
| location | True | Longitud where the restaurant is located |
Available Fields
Field | Type | Description |
| string | Name of the restaurant |
| string | Restaurant address |
| string | Number of recommended restaurants |
| string | Name of the recommended restaurant |
Example
Restaurant search by using a term and location
The following example retrieves the information of all restaurants which name contains the word "Salad"
Restaurant search by using two terms and location
The following example retrieves the information of all restaurants which name contains the word "Salad" or "Vegetarian"
Last updated