Determination of driving direction of vehicle or vehicle train