nextLeg

open fun nextLeg()

Selects the next leg if possible. Once the last leg is reached, further use of this method is idempotent