mgrs
Utility for converting between WGS84 lat/lng and MGRS coordinates
Last updated 5 months ago by danieljdufour .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install mgrs 
SYNC missed versions from official npm registry.

mgrs

Utility for converting between WGS84 lat/lng and MGRS coordinates, spunoff from proj4js

has 3 methods

  • forward, takes an array of [lon,lat] and optional accuracy and returns an mgrs string
  • inverse, takes an mgrs string and returns a bbox.
  • toPoint, takes an mgrs string, returns an array of '[lon,lat]'

install dev dependencies with

npm install

test with

npm test

build with

npm run build

Licensed under the MIT license except:

Portions of this software are based on a port of components from the OpenMap com.bbn.openmap.proj.coords Java package. An initial port was initially created by Patrice G. Cappelaere and included in Community Mapbuilder (http://svn.codehaus.org/mapbuilder/), which is licensed under the LGPL license as per http://www.gnu.org/copyleft/lesser.html. OpenMap is licensed under the this license agreement

references:

Current Tags

  • 2.2.0                                ...           latest (5 months ago)
  • 1.0.1-alpha.0                                ...           next (4 years ago)

9 Versions

  • 2.2.0                                ...           5 months ago
  • 2.1.0                                ...           2 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.1-alpha.0                                ...           4 years ago
  • 1.0.0                                ...           10 years ago
  • 0.0.3                                ...           11 years ago
  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           12 years ago
  • 0.0.0                                ...           13 years ago
Downloads
Total 21
Today 0
This Week 0
This Month 13
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (7)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE