src/Services/Geocoding/GeocoderRequest.php
public function setRegion($region = null)
    {
        if ((!is_string($region) || (strlen($region) !== 2)) && ($region !== null)) {
            throw GeocodingException::invalidGeocoderRequestRegion();
        }

        $this->region = $region;
    }
public function setRegion($region = null)
    {
        if ((!is_string($region) || (strlen($region) !== 2)) && ($region !== null)) {
            throw GeocodingException::invalidGeocoderRequestRegion();
        }

        $this->region = $region;
    }
Sets the geocoder request region.

@param string $region The geocoder request region.

@throws \Ivory\GoogleMap\Exception\GeocodingException If the regin is not valid.