JA 5171 then AV 9524 at Bogotá
Santa Marta → Bogota → Barranquilla
Timetable, Bogota time
14:35JA 5171 from Santa Marta at the gate
14:05AV 9524 to Barranquilla leaves the gate
23 h 30 apart on the timetable, overnight
AV 9524 leaves 23 h 30 after JA 5171 arrives on the timetable: more than half a day, so not a connection we count.