The Chiang Mai old city is surrounded by a moat.
If you’re outside the old city, the road around the moat is one way: clockwise.
If you’re inside the old city, the road around the moat is one way: anticlockwise.
There are frequent intersections around the moat where you can cross over from one side to another, if you need to change direction.