To build a bridge, for instance over a river or the like, it is sufficient to build railroad tracks down on each shore as shown below. Then simply click one of the tracks ends with the bridge building tool, and a rail bridge will automatically be build.