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