$_db
$_db : \Horde_Db_Adapter
Mysql implementation for storing/searching geo location data for events.
Makes use of the GIS extensions available in mySQL 4.1 and later.
Copyright 2009-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
search(array $criteria) : array
Search for events "close to" a given point.
TODO: If all we really use the geodata for is distance, it really doesn't make sense to use the GIS extensions since the distance calculations are done with Euclidian geometry ONLY ... and therefore will give incorrect results when done on a geocentric coordinate system... They might be useful if we eventually want to do searches on MBRs
array | $criteria | An array of: point - lat/lon hash radius - the radius to search in limit - limit the number of hits factor - Conversion factor for miles per distance unit [default is 69]. |
of event ids with locations near the specified criteria.
__construct(\Horde_Db_Adapter $adapter) : \Kronolith_Geo_Base
\Horde_Db_Adapter | $adapter | The Horde_Db adapter |