src/Net/API/Google/Maps/Geocoder.php
public function getGeoTags( $address, $force = FALSE )
	{
		$xml	= $this->getGeoCode( $address, $force );
		$xml	= new XML_Element( $xml );
		$coordinates	= (string) $xml->result->geometry->location;
		$parts			= explode( ",", $coordinates );
		$data			= array(
			'longitude'	=> (string) $xml->result->geometry->location->lng,
			'latitude'	=> (string) $xml->result->geometry->location->lat,
			'accuracy'	=> NULL,
		);
		return $data;
	}
public function getGeoTags( $address, $force = FALSE )
	{
		$xml	= $this->getGeoCode( $address, $force );
		$xml	= new XML_Element( $xml );
		$coordinates	= (string) $xml->result->geometry->location;
		$parts			= explode( ",", $coordinates );
		$data			= array(
			'longitude'	=> (string) $xml->result->geometry->location->lng,
			'latitude'	=> (string) $xml->result->geometry->location->lat,
			'accuracy'	=> NULL,
		);
		return $data;
	}
public function getGeoTags ( $ address , $ force = FALSE ) { $ xml = $ this -> getGeoCode ( $ address , $ force ) ; $ xml = new XML_Element ( $ xml ) ; $ coordinates = ( string ) $ xml -> result -> geometry -> location ; $ parts = explode ( "," , $ coordinates ) ; $ data = array ( 'longitude' => ( string ) $ xml -> result -> geometry -> location -> lng , 'latitude' => ( string ) $ xml -> result -> geometry -> location -> lat , 'accuracy' => NULL , ) ; return $ data ; }
Returns longitude, latitude and accuracy for an address.
@access		public
@param		string		$address		Address to get data for
@param		bool		$force			Flag: do not use cache
@return		array
@throws		RuntimeException			if query limit is reached
@throws		InvalidArgumentException	if address could not been resolved
Returns longitude latitude and accuracy for an address .