zomato: Query the Zomato API

Description Methods Arguments References Examples

Description

An API key is needed to bridge communication between R and Zomato. You can sign up the key here.

Methods

Restaurants:

Location:

Common:

Arguments

References

https://developers.zomato.com/documentation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
zmt <- zomato$new("your-api-key")
zmt
mugen <- zmt$search(query = "Mugen Ramen & Bar", lat = -37.81, lon = 144.96)
zmt$reviews(res_id = mugen$id[1])
zmt$restaurant(res_id = mugen$id[1])

zmt$locations(query = "Melbourne", -37.8136, 144.9631)
zmt$location_details(93747, "zone")

zmt$categories()
zmt$cities(query = "Melbourne")
zmt$collections(259)
zmt$cuisines(259)
zmt$establishments(259)
zmt$geocode(-37.8136, 144.9631)

## End(Not run)

earowang/romato documentation built on May 29, 2019, 4:46 a.m.