If the tail of the wye is a stub the simplest way to work it is to have the switch on the tail of the wye control the polarity. When the switch is lined for the west leg the polarity is the same as the west leg. When the switch is lined for the east leg the polarity is for the east leg. Very simple and pretty foolproof.
On a DPDT toggle switch there are 6 contacts.
Connect the north rail on the west leg to the top right contact.
Connect the south rail on the west leg to the bottom right contact.
Connect the north rail on the east leg to the bottom left contact.
Connect the south rail on the east leg to the top left contact.
Connect the west rail of the tail to the top center contact
Connect the east rail of the tail to the bottom center contact.
Dave H.
Dave H. Painted side goes up. My website : wnbranch.com
You have it right, rlandry. The gapped section that is to have its polarity altered needs only to be sufficiently long to encompass the length of the longest separation between the first and last power-transferring axles using that gapped reversing section. If those widely separated axles are contiguous to the engine and to nothing else, you are fine. Add one more axle that requires wipers to power something and you must add that length for the purposes of reversing the polarity safely within the length of the reversing section.