2-18-504. Mileage computed by shortest traveled route. Wherever mileage is allowed to any sheriff or other officer, juror, witness, or other person under any law of Montana, the same shall be computed according to the shortest traveled route, when such shortest route is passable.