def getEstablishments(self, city_id, **kwargs):
params = {"<STR_LIT>": city_id}<EOL>optional_params = ["<STR_LIT>", "<STR_LIT>"]<EOL>for key in optional_params:<EOL><INDENT>if key in kwargs:<EOL><INDENT>params[key] = kwargs[key]<EOL><DEDENT><DEDENT>establishments = self.api.get("<STR_LIT>", params)<EOL>return establishments<EOL>
:param city_id: id of the city for which collections are needed
:param lat: latitude
:param lon: longitude
Get a list of restaurant types in a city. The location/City input can be provided in the following ways
- Using Zomato City ID
- Using coordinates of any location within a city
List of all restaurants categorized under a particular restaurant type can obtained using
/Search API with Establishment ID and location details as inputs