Trevithick's first use of steam traction on rail took place at Merthyr Tydfil, Glamorganshire, on a tramroad 9¾ miles long between the Penydarren ironworks of Samuel Homfray, and the staithes at Abercynon, where the worked iron was loaded into barges on the Glamorganshire Canal.
Source: wiktionary