Geodesy-PHP is a port of some known geodesic/math functions for getting distance from a known point A to a known point B given their coordinates (good for working out distances between different latitude/longitude data provided by Google Geolocation or any RESTful APIs).
It also supports conversion between units of length, Polar position to Cartesian coordinates, and different Reference Datums.
It provides distance calculations by:
All operations are set in Metre. But it can also convert distance (and other transformation) values to:
-
Kilometre
-
Mile
-
Nautical Mile
-
Astronomical Unit
It also allows coordinate/geographical conversions between the ff:
-
Polar to Cartesian
-
Cartesian to Polar
-
Polar to Web Mercator
-
Web Mercator to Polar
Reference Datums are and will be, by default, set to WGS84. You can also transform one coordinate taken from a different source to another (see this for reference), as it also comes with pre-built datums (see the Datum namespace for options).
The following are the transformation options:
-
3-Parameter Molodensky Transformation
-
7-Parameter Helmert Transformation
-
10-Parameter Molodensky-Badekas Transformation
You can read about it here