 At San José, these lines reunited and the railway continued onto Alajuela, the small Pacific port of Tivives and Puntarenas.The railroad was jointly owned by the state and the Costa Rica railway company, with the latter behind the 1904 arrangement to build several branch lines through the banana districts of the Atlantic littoral.In 1926, a decision was made to electrify the lines, and the first electric train ran from San José to Puntarenas on April 8, 1930.