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

Available Fields

Example

Restaurant search by using a term and location

The following example retrieves the information of all restaurants which name contains the word "Salad"

{
  restaurantSearchByLocation(
    query: "Salad",
    lat: 37.790667,
    lon: -122.393481) {
    onPlan {
      name
      address1
      recommendationsCount
      recommendation
    }
    otherResults {
      name
      address1
    }
  }
}

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"

{
  restaurantSearchByLocation(
    query: "Salad Vegetarian",
    lat: 37.790667,
    lon: -122.393481) {
    onPlan {
      name
      address1
      recommendationsCount
      recommendation
    }
    otherResults {
      name
      address1
    }
  }
}

Last updated