src/Services/Directions/DirectionsRequest.php
public function setAvoidHighways($avoidHighways = null)
    {
        if (!is_bool($avoidHighways) && ($avoidHighways !== null)) {
            throw DirectionsException::invalidDirectionsRequestAvoidHighways();
        }

        $this->avoidHighways = $avoidHighways;
    }
public function setAvoidHighways($avoidHighways = null)
    {
        if (!is_bool($avoidHighways) && ($avoidHighways !== null)) {
            throw DirectionsException::invalidDirectionsRequestAvoidHighways();
        }

        $this->avoidHighways = $avoidHighways;
    }
Sets if the the directions request avoids hightways.

@param boolean $avoidHighways TRUE if the directions request avoids hightways else FALSE.

@throws \Ivory\GoogleMap\Exception\DirectionsException If the avoid highways flag is not valid.