I doubt these are funicular's "in which a cable attached to a pair of tram-like vehicles on rails moves them up and down" more likely these are inclinators which are tagged as linear ways with highway=elevator
https://wiki.openstreetmap.org/wiki/Tag:highway=elevator?uselang=en#Inclined_elevators

For example https://www.openstreetmap.org/way/1226061885