MCPcopy Create free account
hub / github.com/proj4js/mgrs

github.com/proj4js/mgrs @v2.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.1.0 ↗ · + Follow
18 symbols 37 edges 5 files ⚖ MIT 12 documented · 67% 1 cross-repo links updated 2mo agov2.2.0 · 2026-07-11★ 11216 open issues

Browse by type

Functions 18 Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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:

  • Wikipedia: https://en.wikipedia.org/wiki/Military_Grid_Reference_System
  • GEOTRANS: https://earth-info.nga.mil/#geotrans

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 18

Languages

TypeScript100%

Modules by API surface

mgrs.js16 symbols
test/setup.js2 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add mgrs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page