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