thrissur was the capital city of the kingdom of cochin