PHPCoord is a set of PHP functions for handling various co-ordinate systems and converting between them
PHPCoord is a set of PHP functions for handling various co-ordinate systems and converting between them. Currently, OSGB (Ordnance Survey of Great Britain) grid references, traditional Irish Grid references, the newer ITM (Irish Transverse Mercator) system, UTM (Universal Transverse Mercator) references and latitude/longitude are supported.
Conversions between latitudes/longitudes in WGS84 (GPS), OSGB36, ED50 and NAD27 datums are built-in, and helper functions exist to ease conversion between other datums.
A function is also provided to find the surface distance between two points of latitude and longitude.
If you use Composer, just add
php-coord/php-coord to your project's
composer require php-coord/php-coord
Otherwise, the library is PSR-4 compliant, so will work with the autoloader of your choice.
PHPCoord is MIT-licensed.