If you are planning to visit Montserrat, there are two type of public transport to go up the hill, one is cable car and the other one is rack railway. Google Map keeps suggesting us to use rack railway but we chose to use cable car for the elevated experience. The one day return ticket was able to buy at the local kiosk machine from Barcelona train station. Cable car included ticket is slighly cheaper than the rack railway package! Overall it was very fun! The cable car moves kind of slow so it will take a while to wait in the line. Make sure you check the schedule to catch the last ride! If you are confuse, just ask anyone in the train, most of them are going to the same direction.