InBetween
SearchPreferences

Preferences

The preferences object describes what your users are looking for, and decides which venues are returned and how they're ranked.

preferences is optional. Without it, search returns every venue in range, nearest first. With it, InBe filters out venues that don't fit and ranks the rest by how well they match.

All preferences

"preferences": {
  "genre": ["Italian", "Wine Bar"],
  "goodFor": ["date"],
  "establishmentFilters": ["serves_dinner", "outdoor_seating"],
  "catersFilters": ["vegetarian", "gluten_free"],
  "vibes": ["cosy", "candlelit"],
  "dressCode": ["casual", "smart_casual"],
  "nonCompromise": ["catersFilters"],
  "chainPreference": "PREFER_INDEPENDENT",
  "openingConditions": { "state": "OPEN", "atTime": "2026-06-12T19:30:00+01:00" },
  "accessibilityOptions": ["ENTRANCE"],
  "parkingOptions": ["STREET"],
  "paymentOptions": ["NFC"]
}

Don't send all of these at once. Every filter removes venues, so a long list of preferences can quickly return nothing.

PreferenceTypeEffect
genrestring[]Filter: at least one must match
goodForstring[]Shortcut that expands into the other preferences
establishmentFiltersstring[]Ranking
catersFiltersstring[]Ranking
vibesstring[]Ranking
dressCodeenum[]Filter: venues stating another dress code are left out
nonCompromisestring[]Turns establishmentFilters, catersFilters and/or vibes into filters
chainPreferenceenumFilter (NO_CHAINS, CHAINS_ONLY) or ranking (PREFER_*)
openingConditionsobjectFilter when state is OPEN or CLOSED
accessibilityOptionsenum[]Filter: at least one must match
parkingOptionsenum[]Filter: at least one must match
paymentOptionsenum[]Filter: at least one must match
specialobjectReserved. Accepted but ignored

How matching works

  1. Location: only venues within mode.maxDistance are considered.
  2. Filters: venues that fail any filter are removed. Filters are combined with AND. Inside a single list, values are combined with OR. For example, "genre": ["Italian", "Pizza"] means Italian or Pizza.
  3. Ranking: the remaining venues get a matchScore, which goes up by one for each requested genre, establishment flag, caters flag and vibe the venue has. PREFER_INDEPENDENT and PREFER_CHAINS add or subtract one. Results are sorted by score, highest first, then by distance.

Ranking preferences never remove venues. A venue with none of your establishmentFilters can still appear, lower down the list.

Values must match exactly

establishmentFilters and catersFilters values are lowercase snake_case (for example gluten_free, not glutenFree). The API doesn't return an error for values it doesn't recognise. They're ignored for ranking, but in a filter they match nothing, so an unrecognised genre or non-compromise flag can return no results. Check spelling against the lists on each page.

Examples

{
  "locations": [
    { "lat": 51.5072, "lon": -0.1276 },
    { "lat": 51.5154, "lon": -0.1419 }
  ],
  "mode": { "mode": "POINT", "maxDistance": 750 },
  "preferences": {
    "goodFor": ["date"],
    "establishmentFilters": ["serves_wine", "serves_dinner"],
    "chainPreference": "NO_CHAINS",
    "openingConditions": {
      "state": "OPEN",
      "atTime": "2026-06-12T19:30:00+01:00"
    }
  }
}
{
  "locations": [{ "lat": 51.5145, "lon": -0.089 }],
  "mode": { "mode": "POINT", "maxDistance": 500 },
  "preferences": {
    "establishmentFilters": [
      "good_for_working",
      "free_wifi",
      "serves_lunch",
      "serves_coffee"
    ],
    "openingConditions": { "state": "OPEN" }
  }
}
{
  "locations": [{ "lat": 51.4613, "lon": -0.1156 }],
  "mode": { "mode": "POINT", "maxDistance": 1500 },
  "preferences": {
    "goodFor": ["family", "children"],
    "accessibilityOptions": ["ENTRANCE"],
    "parkingOptions": ["LOT", "STREET"]
  }
}
{
  "locations": [{ "lat": 51.5136, "lon": -0.1365 }],
  "mode": { "mode": "POINT", "maxDistance": 800 },
  "preferences": {
    "catersFilters": ["gluten_free"],
    "nonCompromise": ["catersFilters"],
    "establishmentFilters": ["serves_dinner"]
  }
}

Strategy

  • Start broad. Use location and one or two ranking preferences, then add filters if results aren't relevant enough.
  • Prefer ranking over filtering. establishmentFilters and catersFilters push the best venues to the top without risking an empty response.
  • Filter for real constraints only, such as allergies, accessibility, or "must be open now".
  • Handle empty results. If totalFound is 0, retry with a larger maxDistance or fewer filters, and tell your user what you relaxed.

Next steps

On this page