public function getLocation($ip = '', $baseCurrency = '', $renameArrayKeys = false)
    {
        $params = [
            'ip'            => !$ip ? $_SERVER['REMOTE_ADDR'] : $ip,
            'base_currency' => $baseCurrency,
        ];

        $response = $this->client->get('json.gp', $params);

        $data = $this->handleResponseContent($response, 'json');

        if ($renameArrayKeys) {
            $tmpData = [];
            foreach ($data as $key => $value) {
                $tmpData[str_replace('geoplugin_', '', $key)] = $value;
            }
            $data = $tmpData;
        }

        return $data;
    }