private function findInGoogleSet($response, array $find = [], $type = 'long_name')
	{
		try {
			foreach($response['results'][0]['address_components'] as $data) {
				foreach($data['types'] as $key) {
					if(in_array($key, $find)) {
						return $data[$type];
					}
				}
			}
			return '';
		}
		catch(Exception $e) {
			$this->error = $e;
			return '';
		}

	}
private function findInGoogleSet($response, array $find = [], $type = 'long_name')
	{
		try {
			foreach($response['results'][0]['address_components'] as $data) {
				foreach($data['types'] as $key) {
					if(in_array($key, $find)) {
						return $data[$type];
					}
				}
			}
			return '';
		}
		catch(Exception $e) {
			$this->error = $e;
			return '';
		}

	}
private function findInGoogleSet ( $ response , array $ find = [ ] , $ type = 'long_name' ) { try { foreach ( $ response [ 'results' ] [ 0 ] [ 'address_components' ] as $ data ) { foreach ( $ data [ 'types' ] as $ key ) { if ( in_array ( $ key , $ find ) ) { return $ data [ $ type ] ; } } } return '' ; } catch ( Exception $ e ) { $ this -> error = $ e ; return '' ; } }
Find a value in a response from google

@param array (googles response)
@param array (attributes to find)
@return string
Find a value in a response from google