Description Usage Arguments Value Examples
Use the Yelp event search API to find events near a given location and in a given time range.
1 2 3 4 5 6 7 | event_search(location = NULL, latitude = NULL, longitude = NULL,
radius_m = 40000, datetime_start = Sys.time(),
datetime_end = datetime_start + lubridate::ddays(7), is_free = NA,
categories = NULL, locale = get_yelp_locale(), limit = 50L,
offset = 0L, sort_on = c("popularity", "time_start"),
sort_by = c("desc", "asc"),
access_token = Sys.getenv("YELP_ACCESS_TOKEN", NA))
|
location |
A string describing the location. |
latitude |
A number representing the latitude to search close to. |
longitude |
A number representing the longitude to search close to. |
radius_m |
A number giving the radius, in metres, of the search circle around the specified location. |
datetime_start |
A date-time object coercible to |
datetime_end |
A date-time object coercible to |
is_free |
Logical. Set to |
categories |
A character vector of search categories to filter on,
or |
locale |
A string naming the locale. See |
limit |
An integer giving the maximum number of businesses to return. Maximum 50. |
offset |
An integer giving the number of businesses to skip before returning. Allows you to return more than 50 businesses (split between multiple searches). |
sort_on |
Should the return values be sorted by |
sort_by |
Either |
access_token |
A string giving an access token to authenticate the API
call. See |
A data frame with 28 columns. Each row corresponds to one event.
1 2 3 | ## Marked as don't test because an access token is needed
events_in_houston <- event_search("houston")
if(interactive()) View(events_in_houston) else str(events_in_houston)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.