Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2018-05-01 (1 year ago) ![RSS 2.0 feed](/graphics/phpclasses/rss2.png) | | Not yet rated by the users | | Total: 193 This week: 8 | | All time: 8,293 This week: 36![Up](/graphics/phpclasses/up.png) |
|
Description | | Author |
This package can get the distance between places with their coordinates.
It takes the latitude and longitude of two points on the planet Earth and calculates the distance between them going in a straight line.
The package can also converts values between units of length, between Geographical position to Cartesian, and between different Reference Datums. | |
![Picture of Jericko Tejido Picture of Jericko Tejido](/graphics/unknown.gif) |
|
Innovation award
![Innovation award](/graphics/phpclasses/innovation-award-logo.png) Nominee: 1x
Winner: 1x |
|
Details
![Earth](https://www.mkompf.com/gps/images/sphere2.png)
Geodesy-PHP
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:
- Spherical Law of Cosines
- Haversine Formula
- Vincenty's Formula
- Hubeny's Formula
- Thomas' Formula
- Andoyer-Lambert Formula
- Elliptic Distance
- Forsythe-Andoyer-Lambert Formula
Unit Conversion
All operations are set in Metre. But it can also convert distance (and other transformation) values to:
- Kilometre
- Mile
- Nautical Mile
- Astronomical Unit
Position Conversion
It also allows coordinate/geographical conversions between the ff:
- Polar to Cartesian
- Cartesian to Polar
- Polar to Web Mercator
- Web Mercator to Polar
Transformation Options
Reference Datums are, 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 some pre-built datums (though very limited in number as it has little use for me aside from WGS84, i.e. at the time of writing this).
The following are the transformer options:
- 3-Parameter Molodensky Transformer
- 7-Parameter Helmert Transformer
- 10-Parameter Molodensky-Badekas Transformer
Documentation
You can read about it here
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.