Both places are awesome , if you visit Trivandrum within one hour you can also go to Varkala. If you have a plan to visit any of these places don't skip of visiting the other place because both destinations have their own unique sightseeing's.
https://www.indianeagle.com/traveldiary/trivandrum-international-airport-trv/