Class Kronolith_Geo_Base
	
	Storage driver for Kronolith's Geo location data.
Copyright 2009-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
	 
	
	
	
	
	Methods summary
	
		| 
			 public 
			Kronolith_Geo_Base | 
		#
		__construct( Horde_Db_Adapter $adapter )
			
		 
			
				Parameters
					$adapterThe Horde_Db adapter
Returns | 
	
		| 
			abstract public 
			
			
			 | 
		#
		setLocation( string $event_id, array $point )
			Save location of event to storage 
			Save location of event to storage Parameters
					$event_idThe event id
$pointHash containing 'lat' and 'lon' coordinates
 | 
	
		| 
			abstract public 
			array
			
			 | 
		#
		getLocation( string $event_id )
			Retrieve the location of the specified event. 
			Retrieve the location of the specified event. ParametersReturns
					arrayA hash containing 'lat' and 'lon'
 | 
	
		| 
			abstract public 
			
			
			 | 
		#
		deleteLocation( string $event_id )
			Removes the event's location from storage. 
			Removes the event's location from storage. Parameters | 
	
		| 
			abstract public 
			array
			
			 | 
		#
		search( array $criteria )
			Search for events close to a given point. 
			Search for events close to a given point. Parameters
					$criteriaAn array of:
<pre>point  - lat/lon <span class="php-keyword2">hash</span>
radius - the radius to search in
limit  - limit the number of hits
factor - Conversion factor <span class="php-keyword1">for</span> miles per distance unit [<span class="php-keyword1">default</span> is <span class="php-num">69</span>].</pre>
Returns
					arrayof event ids with locations near the specified criteria.
 |