AV 9789 then JA 5172 at Bogotá
Cartagena → Bogota → Santa Marta
Timetable, Bogota time
16:00AV 9789 from Cartagena at the gate
15:00JA 5172 to Santa Marta leaves the gate
23 h apart on the timetable, overnight
JA 5172 leaves 23 h after AV 9789 arrives on the timetable: more than half a day, so not a connection we count.