What is the meaning of Switchman?

A person who operates railway switches that route trains onto rail tracks.

A person whose job is to help in the switching of railcars in a railway yard.

Source: wiktionary.org