Get address from requested param

@param string $param
@throws \Sonar\Exceptions\GeoServiceException
@return array
195875
public function location($param) {

        try {

            $result = $this->geocoder->geocode($param);

            // parse  data from geo locator
            return (new Geo($result))->toArray();

        } catch (\Exception $e) {
            throw new GeoServiceException($e->getMessage());
        }
    }
427841
protected function parseParam($param)
    {
        $method = 'parse'.ucfirst($param);

        if (method_exists($this, $method)) {
            if ($params = $this->input($param)) {
                return $this->$method($params);
            }
        }
    }
1194130
public function getMatch($params = array())
    {
        $resource = 'georegion/suggest.json';
        $resource .= '?' . $this->buildQueryString($params);
        $response = $this->getServiceResponse($resource);

        $geoRegionsSuggest = new Models\ResponseGeoRegionSuggestGet($response);

        return $geoRegionsSuggest;
    }
494894
private function GetParamString($param)
    {
        if ($param === null)
            return "null";
        if (is_string($param))
            return "'" .  addcslashes($param, "'") . "'";
        
        else if (is_bool($param))
            return $param ? "true" : "false";
        
        else if (is_int($param) || is_float($param))
            return (string)$param;
        
        else if ($param instanceof WritableClass)
            return $param->GetNewStatement();
        
        else if (is_array($param))
        {
            $resultArr = array();
            foreach ($param as $key=>$val)
            {
                $resultArr[] = $this->GetParamString($key) . '=>' . $this->GetParamString($val);
            }
            return 'array(' . join (', ' , $resultArr) .')';
        }
        else if ($param instanceof \Phine\Framework\System\Enum)
        {
            $value = $param->Value();
            $class = get_class($param);
            return "\\$class::ByValue('$value')";
        }
        throw new \InvalidArgumentException('A writable class must have primitive types, Enums, arrays and PhpWritable classes as construct params only.');
    }
1129567
public function getParam(string $param)
    {
        if (! empty($this->match['params'][$param])) {
            return $this->match['params'][$param];
        }
    }
208003
public function get($param)
    {
        if ( ! $this->isOpened()) {
            $this->start();
        }
        return isset($this->attributes[$param]) ? $this->attributes[$param] : null;
    }
1295492
public function getCardList($param)
    {
        $this->flushState();
        $uri = $this->getUriCustomer();
        $hasError = false;
        $param['method'] = CheckoutApi_Client_Adapter_Constant::API_GET;
        $isCustomerIdValid = CheckoutApi_Client_Validation_GW3::isCustomerIdValid($param);

        if(!$isCustomerIdValid) {
            $hasError = true;
            $this->throwException('Please provide a valid customer id',array('param'=>$param));

        } else {

            $uri = "$uri/{$param['customerId']}/cards";
        }

        return $this->request( $uri ,$param,!$hasError);
    }
986453
public function getDirective($param)
    {
        $directives = $this->getDirectives();

        return isset($directives[$param]) ? $directives[$param] : null;
    }
66252
public function getList($params = array())
    {
        $resource = 'georegion.json';
        $resource .= '?' . $this->buildQueryString($params);
        $response = $this->getServiceResponse($resource);

        $geoRegions = new Models\ResponseGeoRegionsGet($response);

        return $geoRegions;
    }
723521
public function getRefundAmountInfo($param){

        $chargeHistory = $this->getChargeHistory($param);
        $charges = $chargeHistory->getCharges();
        $chargesArray = $charges->toArray();
        $totalRefunded = 0;

        foreach($chargesArray as $num => $values) {
            if (in_array(CheckoutApi_Client_Constant::STATUS_CAPTURE,$values)){  
                $capturedAmount = $values[ 'value' ];
            }

            if (in_array(CheckoutApi_Client_Constant::STATUS_REFUND,$values)){  
                    $totalRefunded += $values[ 'value' ];
            }
        }

        $refundInfo = array(
            'capturedAmount' => $capturedAmount,
            'totalRefunded' => $totalRefunded,
            'remainingAmount' => $capturedAmount - $totalRefunded
        );

        return $refundInfo;         
    }
1193401
public function load($param = null)
    {

        $configSet = $this->_getConfigSet();

        if (0 === count($configSet)) {
            // set default config set for the default execution
            $configSet = [
                realpath(
                    "{$this->config_path}/{$this->get(self::HIERARCHY_PLACEHOLDER_INDEX)}"
                    . (string) self::CONFIG_DELIMITER
                    . (string) self::FILE_EXTENSION
                )
            ];
            $this->set('config_set', $configSet);
        }

        return $this->populateEngine(
            $this->checkConfigForDefaultConfig($configSet)
        );
    }
752757
public function geocode($address, array $params = []) {
		$this->_buildGeocoder();

		try {
			$result = $this->geocoder->geocode($address);
		} catch (NoResult $e) {
			throw new InconclusiveException(sprintf('Inconclusive result (total of %s)', 0));
		}

		if (!$this->_config['allowInconclusive'] && !$this->isConclusive($result)) {
			throw new InconclusiveException(sprintf('Inconclusive result (total of %s)', $result->count()));
		}
		if ($this->_config['minAccuracy'] && !$this->containsAccurateEnough($result)) {
			throw new NotAccurateEnoughException('Result is not accurate enough');
		}

		return $result;
	}
943544
private Map<String, String> getParameters(String param) {

        if (CmsStringUtil.isNotEmpty(param)) {
            return CmsStringUtil.splitAsMap(param, "|", "=");
        }
        return Collections.emptyMap();
    }
652022
public function call($param = null)
    {
        // get the class within the correct namespace
        // initiate object
        $object = $this->prepareObject(new $this->class());

        $return    = new \SplFixedArray(2);
        $return[1] = $object;

        if (!empty($this->method)) {
            if (!empty($param) && !empty($this->param)) {
                $return[0] = $object->{$this->method}(array_merge((array)$this->param, (array)$param));

                return $return;
            }
            $return[0] = $object->{$this->method}();

            return $return;
        }

        return $return;
    }
359539
protected function getParamDefaultLocal($param)
    {
        $param = $this->getParameter($param);
        if (!is_null($param))
            return $param;

        return $this->getLocal($param);
    }
872708
private function getMappedBackgroundFill(string $param) : string
    {
        $map = [
            'none'             => Style\Fill::FILL_NONE,
            'solid'            => Style\Fill::FILL_SOLID,
            'gradient-linear'  => Style\Fill::FILL_GRADIENT_LINEAR,
            'gradient-path'    => Style\Fill::FILL_GRADIENT_PATH,
            'dark-down'        => Style\Fill::FILL_PATTERN_DARKDOWN,
            'dark-gray'        => Style\Fill::FILL_PATTERN_DARKGRAY,
            'dark-grid'        => Style\Fill::FILL_PATTERN_DARKGRID,
            'dark-horizontal'  => Style\Fill::FILL_PATTERN_DARKHORIZONTAL,
            'dark-trellis'     => Style\Fill::FILL_PATTERN_DARKTRELLIS,
            'dark-up'          => Style\Fill::FILL_PATTERN_DARKUP,
            'dark-vertical'    => Style\Fill::FILL_PATTERN_DARKVERTICAL,
            'gray-0625'        => Style\Fill::FILL_PATTERN_GRAY0625,
            'gray-125'         => Style\Fill::FILL_PATTERN_GRAY125,
            'light-down'       => Style\Fill::FILL_PATTERN_LIGHTDOWN,
            'light-gray'       => Style\Fill::FILL_PATTERN_LIGHTGRAY,
            'light-grid'       => Style\Fill::FILL_PATTERN_LIGHTGRID,
            'light-horizontal' => Style\Fill::FILL_PATTERN_LIGHTHORIZONTAL,
            'light-trellis'    => Style\Fill::FILL_PATTERN_LIGHTTRELLIS,
            'light-up'         => Style\Fill::FILL_PATTERN_LIGHTUP,
            'light-vertical'   => Style\Fill::FILL_PATTERN_LIGHTVERTICAL,
            'medium-gray'      => Style\Fill::FILL_PATTERN_MEDIUMGRAY
        ];

        return isset($map[$param])
            ? $map[$param]
            : Style\Fill::FILL_SOLID;
    }
274145
public function getParams($param = null, $default = array())
    {
    	$params = array();
        $params['page'] = $this->getFrontMatter();
        $params['site'] = $this->getSiteConfig();
        $params['phr'] = $this->getAppConfig();

        $params['current'] = array();
        $inputFile = $this->getInputFile();
        $pos = strpos($inputFile, '/entries');
        if (false !== $pos) {
        	$params['current']['phr_template'] = substr($this->getInputFile(), $pos + 8 + 1);
        }

        // also create merged configuration
        if (isset($params['page'], $params['site'])) {
            $params['this'] = array_merge($params['page'], $params['site'], $params['current']);
        } else {
            $params['this'] = $params['current'];
        }

        if (null !== $param) {
            $params = $this->locateParam($params, $param);
        }

        return isset($params) ? $params : $default;
    }