InBetween
SearchPreferences

Establishment Filters

Rank venues by what they serve and offer, such as coffee, brunch, free wifi or outdoor seating.

establishmentFilters is a list of venue flags. Venues with more of the flags you ask for get a higher matchScore and appear higher in the results. Venues without them aren't removed.

"preferences": {
  "establishmentFilters": ["serves_coffee", "free_wifi", "good_for_working"]
}

To return only venues with at least one of the flags, add "establishmentFilters" to nonCompromise.

Flags

The same values are returned on each venue as establishmentFlags.

FlagVenue…
serves_breakfastserves breakfast
serves_brunchserves brunch
serves_lunchserves lunch
serves_dinnerserves dinner
serves_dessertserves dessert
serves_coffeeserves coffee
serves_beerserves beer
serves_wineserves wine
serves_cocktailsserves cocktails
serves_alcohol_freeserves alcohol-free drinks
dine_inoffers dine-in
takeoutoffers takeaway
deliveryoffers delivery
counter_dininghas counter or bar seating for dining
outdoor_seatinghas outdoor seating
free_wifihas free wifi
air_conditionedis air-conditioned
restroomhas a toilet
allows_dogsallows dogs
live_musichas live music
menu_for_childrenhas a children's menu
good_for_childrenis good for children
good_for_familyis good for families
good_for_groupsis good for groups
good_for_dateis good for a date
good_for_meetingis good for meetings
good_for_workingis good for working or studying
good_for_watching_sportsis good for watching sport
private_dininghas private dining
private_eventshosts private events
real_firehas an open fire or log burner
rooftophas a rooftop bar or terrace
terracehas a terrace or patio
gardenhas a beer garden or garden
heated_outdoor_seatinghas heated outdoor seating
canal_viewis beside or looks over a canal
river_viewis beside or looks over a river
sea_viewlooks over the sea or a beach
city_viewhas a high-up or skyline view
free_board_gameshas board games to play for free
paid_board_gamesis a board game café or charges to play
bar_gameshas darts, pool, shuffleboard or similar
byoblets you bring your own drink
bottomless_brunchoffers bottomless brunch
tasting_menuoffers a tasting menu
set_menuoffers set menus
play_areahas a children's play area
cask_aleserves cask or real ale
quiz_nightholds a regular quiz night
walk_ins_welcomewelcomes walk-ins

Values are lowercase snake_case. Values not in this list are ignored.

Examples

{
  "locations": [{ "lat": 51.5246, "lon": -0.0784 }],
  "mode": { "mode": "POINT", "maxDistance": 600 },
  "preferences": {
    "establishmentFilters": [
      "good_for_working",
      "free_wifi",
      "serves_coffee",
      "serves_lunch"
    ]
  }
}
{
  "locations": [{ "lat": 51.4613, "lon": -0.1156 }],
  "mode": { "mode": "POINT", "maxDistance": 1200 },
  "preferences": {
    "genre": ["Pub", "British"],
    "establishmentFilters": ["serves_lunch", "serves_beer", "good_for_groups"]
  }
}
{
  "locations": [{ "lat": 51.5136, "lon": -0.1365 }],
  "mode": { "mode": "POINT", "maxDistance": 800 },
  "preferences": {
    "establishmentFilters": ["outdoor_seating"],
    "nonCompromise": ["establishmentFilters"]
  }
}

Tips

  • Order doesn't matter. Every flag counts equally towards matchScore.
  • Only use nonCompromise for real needs. It turns the list into an "at least one of" filter and can remove good venues.
  • Check the flags on results. establishmentFlags on each venue tells you which of your preferences it matched, which is useful for "why this place?" explanations.

Next steps

On this page