Etymology
Today it means: A person in charge of a road or a railway. Full definition →
From way + master.
Etymology from Wiktionary, CC BY-SA 4.0.