Devices for indicating the passing of the end of the vehicle or vehicle train