Snapping to the closest path works decently. But if jumping a gap from one path to another isn’t desired you’ll probably need to do some more.
One idea is to limit motion to one line and then at the joints switch to a different line depending on what direction you want to move.
Another idea is to make invisible walls around the channel and use raycasts or wall sliding when moving the object inside.