protected function createGeocoder()
    {
        if ($this->apiKey === null) {
            throw new Exception('API key must be set before geocoding.');
        }

        if ($this->geocoder === null) {
            $this->geocoder = new GoogleMaps(
                new CurlHttpAdapter,
                $this->lang,
                null,
                true,
                $this->apiKey
            );
        }

        return $this->geocoder;
    }
protected function createGeocoder()
    {
        if ($this->apiKey === null) {
            throw new Exception('API key must be set before geocoding.');
        }

        if ($this->geocoder === null) {
            $this->geocoder = new GoogleMaps(
                new CurlHttpAdapter,
                $this->lang,
                null,
                true,
                $this->apiKey
            );
        }

        return $this->geocoder;
    }
protected function createGeocoder ( ) { if ( $ this -> apiKey === null ) { throw new Exception ( 'API key must be set before geocoding.' ) ; } if ( $ this -> geocoder === null ) { $ this -> geocoder = new GoogleMaps ( new CurlHttpAdapter , $ this -> lang , null , true , $ this -> apiKey ) ; } return $ this -> geocoder ; }
Create a geocoder object if one doesn't already exist.

@return  \Geocoder\Geocoder
@throws  \Exception  If API key is not set
Create a geocoder object if one doesn t already exist .