public function getGeocode($lat, $long, $accuracy = null, $granularity = null, $max_results = 0, $callback = null)
	{
		// Check the rate limit for remaining hits
		$this->checkRateLimit('geo', 'reverse_geocode');

		// Set the API path
		$path = '/geo/reverse_geocode.json';

		// Set the request parameters
		$data['lat'] = $lat;
		$data['long'] = $long;

		// Check if accuracy is specified
		if ($accuracy)
		{
			$data['accuracy'] = $accuracy;
		}

		// Check if granularity is specified
		if ($granularity)
		{
			$data['granularity'] = $granularity;
		}

		// Check if max_results is specified
		if ($max_results)
		{
			$data['max_results'] = $max_results;
		}

		// Check if callback is specified
		if ($callback)
		{
			$data['callback'] = $callback;
		}

		// Send the request.
		return $this->sendRequest($path, 'GET', $data);
	}
public function getGeocode($lat, $long, $accuracy = null, $granularity = null, $max_results = 0, $callback = null)
	{
		// Check the rate limit for remaining hits
		$this->checkRateLimit('geo', 'reverse_geocode');

		// Set the API path
		$path = '/geo/reverse_geocode.json';

		// Set the request parameters
		$data['lat'] = $lat;
		$data['long'] = $long;

		// Check if accuracy is specified
		if ($accuracy)
		{
			$data['accuracy'] = $accuracy;
		}

		// Check if granularity is specified
		if ($granularity)
		{
			$data['granularity'] = $granularity;
		}

		// Check if max_results is specified
		if ($max_results)
		{
			$data['max_results'] = $max_results;
		}

		// Check if callback is specified
		if ($callback)
		{
			$data['callback'] = $callback;
		}

		// Send the request.
		return $this->sendRequest($path, 'GET', $data);
	}
public function getGeocode ( $ lat , $ long , $ accuracy = null , $ granularity = null , $ max_results = 0 , $ callback = null ) { // Check the rate limit for remaining hits $ this -> checkRateLimit ( 'geo' , 'reverse_geocode' ) ; // Set the API path $ path = '/geo/reverse_geocode.json' ; // Set the request parameters $ data [ 'lat' ] = $ lat ; $ data [ 'long' ] = $ long ; // Check if accuracy is specified if ( $ accuracy ) { $ data [ 'accuracy' ] = $ accuracy ; } // Check if granularity is specified if ( $ granularity ) { $ data [ 'granularity' ] = $ granularity ; } // Check if max_results is specified if ( $ max_results ) { $ data [ 'max_results' ] = $ max_results ; } // Check if callback is specified if ( $ callback ) { $ data [ 'callback' ] = $ callback ; } // Send the request. return $ this -> sendRequest ( $ path , 'GET' , $ data ) ; }
Method to get up to 20 places that can be used as a place_id when updating a status.

@param   float    $lat          The latitude to search around.
@param   float    $long         The longitude to search around.
@param   string   $accuracy     A hint on the "region" in which to search. If a number, then this is a radius in meters,
but it can also take a string that is suffixed with ft to specify feet.
@param   string   $granularity  This is the minimal granularity of place types to return and must be one of: poi, neighborhood,
city, admin or country.
@param   integer  $max_results  A hint as to the number of results to return.
@param   string   $callback     If supplied, the response will use the JSONP format with a callback of the given name.

@return  array  The decoded JSON response

@since   1.0
Method to get up to 20 places that can be used as a place_id when updating a status .