The rack-and-pinion railway that once labored up the ferociously steep hill closed in the 1930s , but the railway station is still here , its arches visible over the perfectly clipped public gardens Jardim do Monte ( established 1894 ) .
The railway station managed to survive thanks to the citizens ' donations .