In a large body such as a planet, this train could be left to accelerate using just the force of gravity, since during the first half of the trip (from the point of departure until the middle), the downward pull towards the center of gravity would pull it towards the destination. During the second half of the trip, the acceleration would be in the opposite direction relative to the trajectory, but, ignoring the effects of friction, the speed acquired before would be exactly enough to overcome this deceleration, and as a result, the train's speed would reach zero at precisely the moment the train reached its destination.