Hi OP, can you specify where and when-ish you're asking about? Mining has existed since pre-history, and railroads since the 18th century, both all around the world. Do you mean, for example, in 19th c USA? Thanks.