private function createAddressUrl()
	{
		$urlVariables = [
			'language' => $this->locale,
		];

		if(count($this->isos)) {
			$urlVariables['components'] = 'country:'.implode(',', $this->isos);
		}

		// if true it will always be the final stage in getting the address
		if($this->returnLocationData['latitude'] && $this->returnLocationData['longitude']) {
			$urlVariables['latlng'] = $this->returnLocationData['latitude'].','.$this->returnLocationData['longitude'];
			return $this->buildUrl($urlVariables);
		}

		if($this->returnLocationData['city'] && $this->returnLocationData['country']) {
			$urlVariables['address'] = $this->returnLocationData['city'].', '.$this->returnLocationData['country'];
			return $this->buildUrl($urlVariables);
		}

		if($this->returnLocationData['postal_code']) {
			$urlVariables['address'] = $this->returnLocationData['postal_code'].(($this->returnLocationData['street_number']) ? ' '.$this->returnLocationData['street_number'] : '');
			return $this->buildUrl($urlVariables);
		}


	}
private function createAddressUrl()
	{
		$urlVariables = [
			'language' => $this->locale,
		];

		if(count($this->isos)) {
			$urlVariables['components'] = 'country:'.implode(',', $this->isos);
		}

		// if true it will always be the final stage in getting the address
		if($this->returnLocationData['latitude'] && $this->returnLocationData['longitude']) {
			$urlVariables['latlng'] = $this->returnLocationData['latitude'].','.$this->returnLocationData['longitude'];
			return $this->buildUrl($urlVariables);
		}

		if($this->returnLocationData['city'] && $this->returnLocationData['country']) {
			$urlVariables['address'] = $this->returnLocationData['city'].', '.$this->returnLocationData['country'];
			return $this->buildUrl($urlVariables);
		}

		if($this->returnLocationData['postal_code']) {
			$urlVariables['address'] = $this->returnLocationData['postal_code'].(($this->returnLocationData['street_number']) ? ' '.$this->returnLocationData['street_number'] : '');
			return $this->buildUrl($urlVariables);
		}


	}
private function createAddressUrl ( ) { $ urlVariables = [ 'language' => $ this -> locale , ] ; if ( count ( $ this -> isos ) ) { $ urlVariables [ 'components' ] = 'country:' . implode ( ',' , $ this -> isos ) ; } // if true it will always be the final stage in getting the address if ( $ this -> returnLocationData [ 'latitude' ] && $ this -> returnLocationData [ 'longitude' ] ) { $ urlVariables [ 'latlng' ] = $ this -> returnLocationData [ 'latitude' ] . ',' . $ this -> returnLocationData [ 'longitude' ] ; return $ this -> buildUrl ( $ urlVariables ) ; } if ( $ this -> returnLocationData [ 'city' ] && $ this -> returnLocationData [ 'country' ] ) { $ urlVariables [ 'address' ] = $ this -> returnLocationData [ 'city' ] . ', ' . $ this -> returnLocationData [ 'country' ] ; return $ this -> buildUrl ( $ urlVariables ) ; } if ( $ this -> returnLocationData [ 'postal_code' ] ) { $ urlVariables [ 'address' ] = $ this -> returnLocationData [ 'postal_code' ] . ( ( $ this -> returnLocationData [ 'street_number' ] ) ? ' ' . $ this -> returnLocationData [ 'street_number' ] : '' ) ; return $ this -> buildUrl ( $ urlVariables ) ; } }
create the url to connect to for maps api

@return string Url
create the url to connect to for maps api