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