get_cities: get cities ID

Description Usage Arguments Value Author(s) Examples

View source: R/getcities.R

Description

search for Zomato ID and other details for a city

Usage

1
2
get_cities(key = NULL, q = NULL, lat = NULL, lon = NULL,
  city_ids = NULL, count = NULL)

Arguments

key

your API key

q

query by city name

lat

latitude

lon

longitude

city_ids

comma separated city_id values

count

number of max results to display

Value

id (integer) ID of the city name (string) City name country_id (integer, optional) ID of the country country_name (string, optional) Name of the country is_state (boolean, optional) Whether this location is a state state_id (integer, optional) ID of the state state_name (string, optional) Name of the state state_code (string, optional) Short code for the state

Author(s)

Yi Tang <tangyi2014@gmail.com>

Examples

1
get_cities(key="testkey",q="van")

yitang310/zomator documentation built on Feb. 11, 2020, 2:39 a.m.