food_delivery_search: Find food delivery services

Description Usage Arguments Value References Examples

View source: R/food-delivery-search.R

Description

Find services that deliver food to a specified location in the USA.

Usage

1
2
food_delivery_search(location, latitude = NULL, longitude = NULL,
  access_token = Sys.getenv("YELP_ACCESS_TOKEN", NA))

Arguments

location

A string describing the building or other precise location. If this is not provided, then latitude and longitude are compulsory.

latitude

A number representing the latitude to search close to.

longitude

A number representing the longitude to search close to.

access_token

A string giving an access token to authenticate the API call. See get_access_token.

Value

A data frame with 24 columns. Each row corresponds to one business.

References

https://www.yelp.com/developers/documentation/v3/transaction_search

Examples

1
2
3
## Marked as don't test because an access token is needed
lunchtime <- food_delivery_search("empire state building")
if(interactive()) View(lunchtime) else str(lunchtime)

richierocks/yelp documentation built on Oct. 17, 2018, 2:21 a.m.