Answer:
5 miles.
Explanation:
The Pythagorean theorem
will find any side length of a perpendicular triangle when two sides are known.
We substitute for a, the shortest side, a=3 and for b, the longer side, b=4 to find the slanted hypotenuse c.

The direct route is 5 miles.