Railway

Railway is the buildable structure which trains run on. Railways are used to connect Train stations where trains stop. Railways can be laid on the ground. It cannot loop upside-down.

Switches are made by joining two rail segments and then adding a third segment to that junction. A flag will be placed on the switch, but currently, it's wonky, and its setting is ignored by automated trains.

Minimum and maximum build length
The length for a single segment is limited to between 12 to 100 meters. You can join multiple segments end to end to build a longer rail.

Cost
The cost of the rail is 1 Steel Pipe + 1 Steel Beam at the first 18 meters, and 1 Steel Pipe + 1 Steel Beam for every 12 subsequent meters. Due to the building length constrains, it is capped at 8 Steel Pipes + 8 Steel Beams.

Turning radius
The minimum radius is 17 meters. To achieve this tight turn you have to build a straight segment, then the curves, then the next straight segment (or curved) in order. If you build 2 straight segments then build the curve last, it will shows 'The Railroad Track has a too sharp turn!' instead.

Maximum slope
If the starting and ending points lie on the horizontal surface such as foundations, the maximum slope is 28 meters high over the distance of 94.5 meters, which is 1:3.375. If both starting and ending points lie on the Ramp 8m x 2m, the maximum slope can be increased to 1:2.7. You could not build a rail on a Ramp 8m x 4m.

The steepest measured slope is 1:2.322. To achieve this you have to find terrain with matching gradient or by building short segments of sloping rails below the main rail.

Build order
It is advised to build the Train Station before building the rail. Attempt to build the station on top of the existing railway, the station will be built on top of it but not connected. You could, however, build the railway with free end snapped to the foundation then build a train station at the end of it. Same applied to Freight Platforms.

End of line loop
It is advised to put a end-of-line loop for single direction train. Building the loop itself takes trial and error, and separate the loop into several shorter curves are advised: the shorter the curve, the lesser chance that 'Too tight turn!' warning will appear.

Collision width
There is no collision box implemented at the moment, which means that the rail (and entire trains) can clip through the ground. Judging from the visual it is about 6 meters wide and 1 meter high.

Snapping
Rails snap on foundations, ramps, Train Stations, Freight Platforms and Empty Platforms.

Deconstruction
You can deconstruct the rail at any time. You cannot deconstruct the rail in a train station; you have to deconstruct the train station instead. Deconstructing a rail segment with a train moving on it will stop the train. Deconstructing a rail splitway will remove the Railroad Switch Control together.

Supporting columns
There are no supporting columns for the rail, as opposed to what is displayed in the E3 trailer. The latitude curvature of a rail is only dependent on the slope of the starting and ending points, which means if the starting and ending points lie on a flat surface such as foundations, the rail will be perfectly horizontal, despite a large gap in between. On the other hand, attempting to build on uneven ground could lead to unexpected sloping of rail.

Derailing
A train cannot derail when approaching the end of the rail with high speed. Instead, it will simply stop abruptly at the end of the rail. The train segments will be 'compressed' together visually.

Power
The railway can conduct power, to feed it to Electric Locomotives, or between any connected station. You could utilize it as the backbone of your Power Grid. A simple crossroad will not conduct power to the crossing railway, both railways must be connected with a split way to conduct power.

Keys to build a straight railway
Sometimes you may wonder a railway looks curvy, even though you have built it on the foundations. It is because the very first segment that you built on the foundation is not straight: and that curvatures passed down to the next segment you build and it never dissipates. Make sure the railway is straight from the beginning.