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.
| Flag | Venue… |
|---|---|
| serves_breakfast | serves breakfast |
| serves_brunch | serves brunch |
| serves_lunch | serves lunch |
| serves_dinner | serves dinner |
| serves_dessert | serves dessert |
| serves_coffee | serves coffee |
| serves_beer | serves beer |
| serves_wine | serves wine |
| serves_cocktails | serves cocktails |
| serves_alcohol_free | serves alcohol-free drinks |
| dine_in | offers dine-in |
| takeout | offers takeaway |
| delivery | offers delivery |
| counter_dining | has counter or bar seating for dining |
| outdoor_seating | has outdoor seating |
| free_wifi | has free wifi |
| air_conditioned | is air-conditioned |
| restroom | has a toilet |
| allows_dogs | allows dogs |
| live_music | has live music |
| menu_for_children | has a children's menu |
| good_for_children | is good for children |
| good_for_family | is good for families |
| good_for_groups | is good for groups |
| good_for_date | is good for a date |
| good_for_meeting | is good for meetings |
| good_for_working | is good for working or studying |
| good_for_watching_sports | is good for watching sport |
| private_dining | has private dining |
| private_events | hosts private events |
| real_fire | has an open fire or log burner |
| rooftop | has a rooftop bar or terrace |
| terrace | has a terrace or patio |
| garden | has a beer garden or garden |
| heated_outdoor_seating | has heated outdoor seating |
| canal_view | is beside or looks over a canal |
| river_view | is beside or looks over a river |
| sea_view | looks over the sea or a beach |
| city_view | has a high-up or skyline view |
| free_board_games | has board games to play for free |
| paid_board_games | is a board game café or charges to play |
| bar_games | has darts, pool, shuffleboard or similar |
| byob | lets you bring your own drink |
| bottomless_brunch | offers bottomless brunch |
| tasting_menu | offers a tasting menu |
| set_menu | offers set menus |
| play_area | has a children's play area |
| cask_ale | serves cask or real ale |
| quiz_night | holds a regular quiz night |
| walk_ins_welcome | welcomes 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
nonCompromisefor real needs. It turns the list into an "at least one of" filter and can remove good venues. - Check the flags on results.
establishmentFlagson each venue tells you which of your preferences it matched, which is useful for "why this place?" explanations.