It's a funicular: there are only two carriages. One goes up pulled by the cable, as the other comes down, in balance. They have double flanged wheels on the outer side of the loop, one carriage on the left, the other one on the right. They don't need to be turned, as they never come off the end of the cable The track is constructed to feed the cable around the correct side of the loop as the carriage comes down to it., as the photo shows.
regards
Tony