Download .zip |
Info | View files (66) | Download .zip | Reputation | Support forum | Blog (1) | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2018-05-01 (1 year ago) | Not yet rated by the users | Total: 193 This week: 8 | All time: 8,293 This week: 36 |
Version | License | PHP version | Categories | |||
geodesy-php 1.0.0 | MIT/X Consortium ... | 7 | Algorithms, PHP 5, Geography |
Description | Author | |
This package can get the distance between places with their coordinates. |
|
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:
It also allows coordinate/geographical conversions between the ff:
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:
You can read about it here
Files |
File | Role | Description | ||
---|---|---|---|---|
src (1 directory) | ||||
tests (2 files, 1 directory) | ||||
autoload.php | Aux. | Auxiliary script | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | src | / | Geodesy |
File | Role | Description | ||
---|---|---|---|---|
Conversion (6 files) | ||||
Datum (15 files) | ||||
Distance (10 files) | ||||
Location (3 files) | ||||
Models (12 files) | ||||
Transformer (5 files) | ||||
Unit (7 files) |
Files | / | src | / | Geodesy | / | Conversion |
File | Role | Description |
---|---|---|
BaseConversion.php | Class | Class source |
ConversionInterface.php | Class | Class source |
ECEF2LLA.php | Class | Class source |
LLA2ECEF.php | Class | Class source |
LLA2WebMercator.php | Class | Class source |
WebMercator2LLA.php | Class | Class source |
Files | / | src | / | Geodesy | / | Datum |
File | Role | Description |
---|---|---|
BaseDatum.php | Class | Class source |
DatumInterface.php | Class | Class source |
ED50.php | Class | Class source |
Irl1975.php | Class | Class source |
LuzonA.php | Class | Class source |
LuzonB.php | Class | Class source |
NAD27.php | Class | Class source |
NAD83.php | Class | Class source |
NTF.php | Class | Class source |
OSGB36.php | Class | Class source |
Potsdam.php | Class | Class source |
PRS92.php | Class | Class source |
TokyoJapan.php | Class | Class source |
WGS72.php | Class | Class source |
WGS84.php | Class | Class source |
Files | / | src | / | Geodesy | / | Distance |
File | Role | Description |
---|---|---|
AndoyerLambert.php | Class | Class source |
BaseDistance.php | Class | Class source |
DistanceInterface.php | Class | Class source |
EllipticDistance.php | Class | Class source |
ForsytheCorrection.php | Class | Class source |
HaversineFormula.php | Class | Class source |
HubenyFormula.php | Class | Class source |
SphericalCosine.php | Class | Class source |
ThomasFormula.php | Class | Class source |
VincentyFormula.php | Class | Class source |
Files | / | src | / | Geodesy | / | Location |
File | Role | Description |
---|---|---|
ECEF.php | Class | Class source |
LatLong.php | Class | Class source |
WebMercator.php | Class | Class source |
Files | / | src | / | Geodesy | / | Models |
File | Role | Description |
---|---|---|
Airy1830.php | Class | Class source |
AiryModified.php | Class | Class source |
BaseModel.php | Class | Class source |
Bessel1841.php | Class | Class source |
Clarke1866.php | Class | Class source |
Clarke1880IGN.php | Class | Class source |
GRS80.php | Class | Class source |
Intl1924.php | Class | Class source |
ModelInterface.php | Class | Class source |
PRS92Model.php | Class | Class source |
WGS72Model.php | Class | Class source |
WGS84Model.php | Class | Class source |
Files | / | src | / | Geodesy | / | Transformer |
File | Role | Description |
---|---|---|
BaseTransformer.php | Class | Class source |
HelmertTransform.php | Class | Class source |
MolodenskyBadekasTransform.php | Class | Class source |
MolodenskyTransform.php | Class | Class source |
TransformerInterface.php | Class | Class source |
Files | / | src | / | Geodesy | / | Unit |
File | Role | Description |
---|---|---|
AstronomicalUnit.php | Class | Class source |
BaseUnit.php | Class | Class source |
KiloMetre.php | Class | Class source |
Metre.php | Class | Class source |
Mile.php | Class | Class source |
NauticalMile.php | Class | Class source |
UnitInterface.php | Class | Class source |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Geodesy (2 directories) | ||||
bootstrap.php | Aux. | Auxiliary script | ||
phpunit.xml | Data | Auxiliary data |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.