sentences:  Thornton Junction railway station was opened in the 1840s on the Edinburgh and Northern Railway.During the first part of the twentieth century, Thornton railway station was situated on the Aberdeen to London main line to the east of the village, at the end of Station Road.To the west, alongside the Dunfermline line, the largest railway marshalling yard in Scotland was built during the 1950s.