php-coord/php-coord

PHPCoord is a set of PHP functions for handling various co-ordinate systems and converting between them

Fund package maintenance!
dvdoug

v4.0.0beta1 2021-01-04 23:19 UTC

This package is auto-updated.

Last update: 2021-01-05 00:24:50 UTC


README

Build Status Scrutinizer Code Quality Download count Current version

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.

Installation

If you use Composer, just add php-coord/php-coord to your project's composer.json file:

    composer require php-coord/php-coord

Otherwise, the library is PSR-4 compliant, so will work with the autoloader of your choice.

License

PHPCoord is MIT-licensed.