During the late 19th and early 20th century, the Bristol and North Somerset Railway ran roughly parallel to the A37. Further south and west, the Cheddar Valley Line and Wrington Vale Light Railway, branches of the Bristol and Exeter Railway, served towns and villages from Cheddar to Wells. In the east, the Somerset and Dorset Joint Railway ran south from Bath into Dorset, and also served Wells. These have all now closed, but Mendip Rail has freight lines to carry limestone from the quarries of the Mendip Hills. There is also the East Somerset Railway which is an operational heritage railway. The Somerset Coal Canal reached some of the pits of the Somerset Coalfield in the eastern end of the Mendips.