Which figure of speech is used in this text?
It's only forty miles to the ranch as the crow flies, but on the winding local roads, it takes about two hours.

 - onomatopoeia
 - idiom
The text uses an idiom, an expression that cannot be understood literally.
As the crow flies means in a straight line.