A spiral (sometimes called a spiral loop or just loop) is a technique employed by railways to ascend steep hills.
A railway spiral rises on a steady curve until it has completed a loop, passing over itself as it gains height, allowing the railway to gain vertical elevation in a relatively short horizontal distance. It is an alternative to a zig-zag, and avoids the need for the trains to stop and reverse direction while ascending. If the train is longer than the length of each loop it may be possible to view it looping above itself.[1][2]
The term "loop" is also often used for a railway that curves sharply and goes back on itself: if the railway crosses itself, then it forms a spiral or helix; otherwise, it forms the much more common horseshoe curve or bend.[3][4]