rack railway
Concise Oxford English Dictionary © 2008 Oxford University Press:
rack railway
▶noun a railway for steep slopes, having a toothed rail between the bearing rails which engages with a cogwheel under the locomotive.
'rack railway' also found in these Oxford entries:

