gpupo / coordinate
Geographic coordinate conversion
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gpupo/coordinate
Requires
- php: >=5.3.2
Requires (Dev)
This package is auto-updated.
Last update: 2020-02-11 18:15:26 UTC
README
See Geographic coordinate conversion
Features
- Convert a DMS (Degrees, Minutes, Seconds) coordinate such as W87°43′41″, into decimal format longitude / latitude
Usage
<?php use Gpupo\Coordinate\Conversion; $conversion = new Conversion; $dec = $conversion->dmsToDec('42°19\'58"N 87°50\'01"W'); echo $dec['lat']; // output 42,332778 echo $dec['lng'];// output: -87,833611
Install
The recommended way to install is through composer.
{ "require": { "gpupo/coordinate": "dev-master" } }
Todo
- Convert a Decimal format into DMS