protected function sendRequest()
    {
        $parameters = $this->parameters->toArray();
        $parameters['key'] = $this->config['api_key'];

        $response = $this->guzzle->get($this->getRequestUrl(), [
            'query' => $parameters,
        ]);

        return json_decode((string)$response->getBody());
    }
protected function sendRequest()
    {
        $parameters = $this->parameters->toArray();
        $parameters['key'] = $this->config['api_key'];

        $response = $this->guzzle->get($this->getRequestUrl(), [
            'query' => $parameters,
        ]);

        return json_decode((string)$response->getBody());
    }
protected function sendRequest ( ) { $ parameters = $ this -> parameters -> toArray ( ) ; $ parameters [ 'key' ] = $ this -> config [ 'api_key' ] ; $ response = $ this -> guzzle -> get ( $ this -> getRequestUrl ( ) , [ 'query' => $ parameters , ] ) ; return json_decode ( ( string ) $ response -> getBody ( ) ) ; }
Send a request to Google Geocoding API.

@return mixed
Send a request to Google Geocoding API .