Description Usage Arguments Value References Examples
Get term, business, and category autocompletion suggestions.
1 2 3 | autocomplete(text, latitude = NULL, longitude = NULL,
locale = get_yelp_locale(),
access_token = Sys.getenv("YELP_ACCESS_TOKEN", NA))
|
text |
A string to find completions for. |
latitude |
A number representing the latitude to search close to.
Required if you want business results, but can be |
longitude |
A number representing the longitude to search close to.
Required if you want business results, but can be |
locale |
A string naming the locale. See |
access_token |
A string giving an access token to authenticate the API
call. See |
A list of three elements.
A character vector of completion of the text itself
A data frame of business name matches.
A data frame of category matches.
https://www.yelp.com/developers/documentation/v3/autocomplete
1 2 3 4 | ## Marked as don't test because an access token is needed
(sleep_in_seattle <- autocomplete(
"sleep", latitude = 47.6, longitude = -122.33
))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.