2017 © Pedro Peláez
 

library coordinate

Geographic coordinate conversion

image

gpupo/coordinate

Geographic coordinate conversion

  • Tuesday, April 10, 2018
  • by gpupo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Coordinate conversion lib

See Geographic coordinate conversion, (*1)

Build Status, (*2)

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., (*3)

{
    "require": {
        "gpupo/coordinate": "dev-master"
    }
}

Todo

  • [ ] Convert a Decimal format into DMS

The Versions

10/04 2018

dev-master

9999999-dev

Geographic coordinate conversion

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

latitude longitude coordinate decimal dms degrees