Travel from Coimbatore to Kodaikanal, enjoy local sightseeing, and stay overnight at a hotel.
Continue with local sightseeing in Kodaikanal and stay another night at a hotel.
In the morning, travel from Kodaikanal to Palani, then return to Coimbatore for the airport or railway station.