These locations are along the line.
This was the terminus of the Cairn Valley Light Railway (Glasgow and South Western Railway) which started from just north of Dumfries. The terminus was in the south of the town.
The Cairn Valley Light Railway: Moniaive to Dumfries (Locomotion Papers)
The Glasgow & South Western Railway a History