This is the Duquesne Incline in Pittsburgh. It is considered part of the public transportation system of Pittsburgh.
It is also a wonderful place to view Pittsburgh, especially downtown, and many of its bridges. If you are ever in Pittsburgh, go there. The ride is fun, and the view from the viewing platform at the top is amazing. As a side note, Pittsburgh has a lot of bridges, and they are all lovely.