Literary register. Used for things that snake or wind through space — rivers, ranges, walls, trails. Largely interchangeable with
委蛇 in the winding sense, but
逶迤 is the more common form in modern writing and never carries the figurative 'feign cooperation' meaning.