Passing an oncoming train in a bridge