Costa Rica
Costa Rica occupies the southern part of Central America between the Caribbean Sea and the Pacific Ocean. For most of the Spanish colonial period it was the southernmost province of the Captaincy General of Guatemala, and in 1823 it joined the United Provinces of Central America, which became the Federal Republic of Central America under the constitution of 1824.
Costa Rica withdrew from the federation in 1838. A road completed in 1846 carried Coffee from the Central Plateau by oxcart to the Pacific port of Puntarenas, and in 1848 Costa Rica became a republic.
Britain became the main market for Costa Rican coffee by the mid-1850s, making a more direct route to the Atlantic a priority. The government awarded Henry Meiggs the initial contract in 1871 for the railway from San José to Limón, and Minor C. Keith later took over. Despite disease and financing difficulties, the railway opened in 1890.