to drive in a zigzag
Example: "We got lost and have only been driving in a zigzag course for hours." (Means: without a clear destination, not on a straight path).