Kochi ( ; Malayalam: കൊച്ചി [koˈʧːi]); formerly known as Cochin) is a city in the Indian state of Kerala, located in the district of Ernakulam, about 220 kilometers north of the state capital, Thiruvananthapuram.