.

GeoCalc
[Libs]

Helper for geografic calculations. More...

Classes

class   GeoCalculator
  Collection of useful functions related to geo coordinates. More...
class   GeoCoordinate
  Class repersenting a coordinate. More...
interface   IGeoLocated
  Interface for elements having geo coordinates. More...

Detailed Description

Helper for geografic calculations.

Usage

Enable as "lib.geocalc"

The class itself is a component:

 Load::components('geocalculator');
 $distance = GeoCalculator::distance($lat1, $lon1, $lat2, $lon2);

Additionally a class GeoCoordinate can be used that encapsulates latitude and longitude, and offers the same calculations then GeoCalculator does.