Search By String
This function will take a search string, attempt to geocode it as an address and query our retail locations database.
Path
Method
Required Parameters
- search_string (string to be geocoded)
- radius (radius of search in miles, 200 miles max)
- type ('onpremise', 'offpremise', or 'both')
- site_id (get this from B-F IT)
Optional Parameters
Think of these optional parameters as filters on the returned data set. Using geocode_bias_country and geocode_bias_region together may lead to unexpected results.
- brand_id (find this id from the brands API call)
- minor_brand_id (find this id from the brands API call)
- promotion_id (filter to locations involved in a specific promotion)
- geocode_bias_country (string, ISO-3166 Alpha 2 country code)
- geocode_bias_region (string, ISO-3166 Alpha 2 country code)
- geocode_bias_language (string, two character language code, found here)
Responses
- 200 OK
- 422 (Unprocessable Entity)
- Error message in JSON response
- 500
- Something has gone horribly wrong, please let us know.