Locations
Autocomplete location search
Autocomplete location search. Cities and counties come from Model Match's own location dictionary and carry an id (e.g. city_mo_saint-louis) that city / county filters accept — including for places our data spells differently than a mapping provider does. Street addresses come from Mapbox. Use the mapbox_id from any suggestion with retrieveLocation to get normalized geographic details and coordinates.
Authorization
Query parameters
qstringrequiredSearch text
limitintegerdefault: 5Max results (1-10, default 5)
Responses
200objectLocation suggestionsShow attributesHide attributes
suggestionsobject[]requiredShow child attributesHide child attributes
feature_typestringrequiredfull_addressstringidstringLocation dictionary id (e.g. city_mo_saint-louis). Pass this to a city / county filter. Absent on Mapbox address suggestions.
mapbox_idstringrequiredPass to retrieveLocation. On a dictionary suggestion this is the location id; on a Mapbox suggestion it is the Mapbox feature id.
namestringrequiredplace_formattedstringsourceenumWhere the suggestion came from. dictionary suggestions carry an id that filters accept; mapbox suggestions are addresses and coordinates only.
dictionarymapboxstatestringtotalCountnumberRecords across all entities at this location — a popularity signal for ranking, not a filter result count.
typestringLocation type — city or county.
400objectValidation error401objectUnauthorized403objectForbidden (authenticated, but missing required context — e.g. no active organization)404objectNot found413objectResponse payload too large — detail endpoint capped to fit Lambda response limits503objectSearch timed out or the cluster is overloaded — retry after `Retry-After` seconds.