How to build a railway line across the river with car moving