get a single address
@param  string $address address hash
@return array           associative array containing the response
764753
public function address($address) {
        $response = $this->dataClient->get($this->converter->getUrlForAddress($address));
        return $this->converter->convertAddress($response->body());
    }
1327821
public function address($address = null)
    {
        if ($address !== null) {
            $this->address = str_replace('&amp;', '&', $address);
        }

        $this->setRedirectHeaders();

        return $this->address;
    }
1271302
public function geocode($address)
    {
        $query = $this->buildQuery('address', $address);

        $response = $this->validateResponse(
            $this->getResponse($query)
        );

        return $this->buildResults($response['results']);
    }
245144
public function cleanAddress(array $addresses)
    {
        $request = $this->apiRequestFactory->createRequest('POST', $this->getBaseUri() . '/address', $addresses);
        $response = $this->httpClient->sendRequest($request);
        return $this->getResult($response, AddressCollection::class);
    }
1067121
public static function address($coordinates)
	{
		$adapter  = new \Geocoder\HttpAdapter\CurlHttpAdapter();

		$p = array();

		// Get a list of providers
		if ($providers = \Event::trigger('geocode.onGeocodeProvider', array('geocode.address', $adapter)))
		{
			foreach ($providers as $provider)
			{
				if ($provider)
				{
					$p[] = $provider;
				}
			}
		}

		if (!count($p))
		{
			return '';
		}

		$latitude =  isset($coordinates['latitude'])  ? $coordinates['latitude']  : $coordinates[0];
		$longitude = isset($coordinates['longitude']) ? $coordinates['longitude'] : $coordinates[1];

		// Instantiate the Geocoder service and pass it the list of providers
		$geocoder = new \Geocoder\Geocoder();
		$geocoder->registerProvider(new \Geocoder\Provider\ChainProvider($p));

		// Try to get some data...
		return $geocoder->reverse($latitude, $longitude);
	}
97330
protected function parseAddress(array $addresses)
    {
        return array_map(function ($address) {
            return (object) [
                'address' => $address->mailbox.'@'.$address->host,
                'domain' => $address->host,
                'name' => isset($address->personal)
                    ? static::convertBodyEncoding($address->personal)
                    : null
            ];
        }, array_filter($addresses, function ($address) {
            return property_exists($address, 'mailbox') && strtolower($address->mailbox) !== 'undisclosed-recipients';
        }));
    }
128058
protected function getItemMarkerArray($address)
    {
        $markerArray = [];

        //local configuration and local cObj
        $lConf = $this->conf['templates.'][$this->conf['templateName'] . '.'];
        $lcObj = GeneralUtility::makeInstance(ContentObjectRenderer::class);
        $lcObj->data = $address;

        $markerArray['###UID###'] = $address['uid'];

        $markerArray['###GENDER###'] = $lcObj->stdWrap($address['gender'], $lConf['gender.']);
        $markerArray['###NAME###'] = $lcObj->stdWrap($address['name'], $lConf['name.']);
        $markerArray['###FIRSTNAME###'] = $lcObj->stdWrap($address['first_name'], $lConf['first_name.']);
        $markerArray['###MIDDLENAME###'] = $lcObj->stdWrap($address['middle_name'], $lConf['middle_name.']);
        $markerArray['###LASTNAME###'] = $lcObj->stdWrap($address['last_name'], $lConf['last_name.']);
        $markerArray['###TITLE###'] = $lcObj->stdWrap($address['title'], $lConf['title.']);
        $markerArray['###EMAIL###'] = $lcObj->stdWrap($address['email'], $lConf['email.']);
        $markerArray['###PHONE###'] = $lcObj->stdWrap($address['phone'], $lConf['phone.']);
        $markerArray['###FAX###'] = $lcObj->stdWrap($address['fax'], $lConf['fax.']);
        $markerArray['###MOBILE###'] = $lcObj->stdWrap($address['mobile'], $lConf['mobile.']);
        $markerArray['###WWW###'] = $lcObj->stdWrap($address['www'], $lConf['www.']);
        $markerArray['###ADDRESS###'] = $lcObj->stdWrap($address['address'], $lConf['address.']);
        $markerArray['###BUILDING###'] = $lcObj->stdWrap($address['building'], $lConf['building.']);
        $markerArray['###ROOM###'] = $lcObj->stdWrap($address['room'], $lConf['room.']);
        $markerArray['###BIRTHDAY###'] = $lcObj->stdWrap($address['birthday'], $lConf['birthday.']);
        $markerArray['###ORGANIZATION###'] = $lcObj->stdWrap($address['company'], $lConf['organization.']);
        $markerArray['###COMPANY###'] = $markerArray['###ORGANIZATION###']; // alias
        $markerArray['###POSITION###'] = $lcObj->stdWrap($address['position'], $lConf['position.']);
        $markerArray['###CITY###'] = $lcObj->stdWrap($address['city'], $lConf['city.']);
        $markerArray['###ZIP###'] = $lcObj->stdWrap($address['zip'], $lConf['zip.']);
        $markerArray['###REGION###'] = $lcObj->stdWrap($address['region'], $lConf['region.']);
        $markerArray['###COUNTRY###'] = $lcObj->stdWrap($address['country'], $lConf['country.']);
        $markerArray['###DESCRIPTION###'] = $lcObj->stdWrap($address['description'], $lConf['description.']);
        $markerArray['###SKYPE###'] = $lcObj->stdWrap($address['skype'], $lConf['skype.']);
        $markerArray['###TWITTER###'] = $lcObj->stdWrap($address['twitter'], $lConf['twitter.']);
        $markerArray['###FACEBOOK###'] = $lcObj->stdWrap($address['facebook'], $lConf['facebook.']);
        $markerArray['###LINKEDIN###'] = $lcObj->stdWrap($address['linkedin'], $lConf['linkedin.']);
        $markerArray['###MAINGROUP###'] = $lcObj->stdWrap($address['groups'][0]['title'], $lConf['mainGroup.']);
        $markerArray['###GROUPLIST###'] = $lcObj->stdWrap($address['groupList'], $lConf['groupList.']);

        // the image
        $markerArray['###IMAGE###'] = '';
        if (!empty($address['image'])) {
            $filesConf = [
                'references.' => [
                    'uid' => (int)$address['uid'],
                    'table' => 'tt_address',
                    'fieldName' => 'image'
                ],
                'begin' => '0',
                'maxItems' => '1',

                'renderObj' => 'IMAGE',
                'renderObj.' => [
                    'file.' => [
                        'import.' => [
                            'data' => 'file:current:uid'
                        ],
                        'treatIdAsReference' => '1'
                    ],
                    'altText.' => [
                        'data' => 'file:current:alternative'
                    ],
                    'titleText.' => [
                        'data' => 'file:current:title'
                    ]
                ]
            ];
            if (is_array($lConf['image.'])) {
                $filesConf['renderObj.'] = array_merge_recursive($filesConf['renderObj.'], $lConf['image.']);
            }
            for ($filesIndex = 0; $filesIndex < 6; $filesIndex++) {
                $filesConf['begin'] = $filesIndex;
                $markerArray['###IMAGE' . ($filesIndex == 0 ? '' : $filesIndex) . '###'] = $lcObj->cObjGetSingle('FILES',
                    $filesConf);
            }
        } elseif (!empty($lConf['placeholderImage'])) {
            // we have no image, but a default image
            $iConf = $lConf['image.'];
            $iConf['file'] = $lcObj->stdWrap($lConf['placeholderImage'], $lConf['placeholderImage.']);
            $iConf['altText'] = !empty($iConf['altText']) ? $iConf['altText'] : $address['name'];
            $iConf['titleText'] = !empty($iConf['titleText']) ? $iConf['titleText'] : $address['name'];

            $markerArray['###IMAGE###'] = $lcObj->cObjGetSingle('IMAGE', $iConf);
        }

        // adds hook for processing of extra item markers
        if (\is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_address']['extraItemMarkerHook'])) {
            foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_address']['extraItemMarkerHook'] as $_classRef) {
                $_procObj = GeneralUtility::makeInstance($_classRef);
                $markerArray = $_procObj->extraItemMarkerProcessor($markerArray, $address, $lConf, $this);
            }
        }

        return $markerArray;
    }
1057087
public function getAddress($index)
    {
        if (!isset($this->addresses[$index])) {
            return null;
        }
        return $this->addresses[$index];
    }
4399
public function parseRussianAddress($address)
    {
        $response = $this->doRequest(
            self::RESOURCE_PARSE_RUSSIAN_ADDRESS,
            [
                'address' => $address
            ]
        );

        return RussianAddress::fromStream($response);
    }
565116
public function trimAddress($address)
    {
        $address = trim($address);

        return (($address[0] == '<') && (substr($address, -1) == '>'))
            ? substr($address, 1, -1)
            : $address;
    }
683803
private function trimAddress($address)
    {
        if (is_array($address)) {
            $fields  = oxNew(FormFields::class, $address);
            $trimmer = oxNew(FormFieldsTrimmer::class);

            $address = (array)$trimmer->trim($fields);
        }

        return $address;
    }
465266
public function render($address) {
    $element = [
      '#prefix' => '<p class="address" translate="no">',
      '#suffix' => '</p>',
      '#post_render' => [
        [get_class($this), 'postRender'],
      ],
      '#cache' => [
        'contexts' => [
          'languages:' . LanguageInterface::TYPE_INTERFACE,
        ],
      ],
    ] + $this->viewElement($address, 'en');

    return render($element);
  }
398246
public function getZonesFromAddress(AddressInterface $address)
    {
        return $this
            ->zoneRepository
            ->getActiveZones()
            ->filter(function (ZoneInterface $zone) use ($address) {

                return $this
                    ->zoneMatcher
                    ->isAddressContainedInZone(
                        $address,
                        $zone
                    );
            });
    }
559612
function getGeocode($address) {
        if(empty($address))
            return false;
        $_geocode = false;  
        if(($_geocode = $this->getCache($address)) === false) {
        	if(($_geocode = $this->geoGetCoords($address)) !== false) {
            	$this->putCache($address, $_geocode['lon'], $_geocode['lat']);
            }
        }
        return $_geocode;
    }
7601
public static function lookUpHostIp($address)
    {

        $ipAddress = null;
        if (function_exists('dns_get_record')) {
            $records = dns_get_record(trim($address));
            foreach ($records as $record) {
                if ($record['type'] == 'A') {
                    $ipAddress = $record['ip'];
                }
            }
        }
        return $ipAddress;
    }
549987
private function setAddress($address) {

        if(!$this->formatter) {
            $this->formatter = new StringFormatter();
        }

        $this->address = trim($this->formatter->format($address, '%S %n %z %L %C'));

        return $this;
    }
124575
public function addEmailAddress(array $addresses = []): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/user/emails'), Request::METHOD_POST, $addresses);
    }