contributions/lib.geocalc/doxygen.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * @defgroup GeoCalc 00004 * @ingroup Libs 00005 * 00006 * Helper for geografic calculations 00007 * 00008 * @section Usage Usage 00009 * 00010 * Enable as "lib.geocalc" 00011 * 00012 * The class itself is a component: 00013 * 00014 * @code 00015 * Load::components('geocalculator'); 00016 * $distance = GeoCalculator::distance($lat1, $lon1, $lat2, $lon2); 00017 * @endcode 00018 * 00019 * Additionally a class GeoCoordinate can be used that encapsulates latitude and longitude, 00020 * and offers the same calculations then GeoCalculator does. 00021 */