geoprimsField-grade geospatial math

GARS to latitude and longitude

Decodes a Global Area Reference System code (5 to 7 characters) to the center and bounds of its cell, quadrant, or keypad.

Go the other way: Latitude and longitude to GARS →

57.625°

The GARS cell is centered at 57.625°, 10.375°.

Center longitude
South edge
West edge
North edge
East edge
Provenance
Computed by
geodesy.grid-ref.gars-inverse 1.0.0, core 0.1.0
Model
GARS as in GeographicLib's GARS class
Accuracy
Identical to GeographicLib's GARS class (within 1e-13°)
Notes
None
Cites
National Geospatial-Intelligence Agency, Global Area Reference System (GARS); Karney, C. F. F., GeographicLib, GeographicLib GARS and Georef classes

Something look off?

Your values

Showing an example. Change anything.
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: GARS as in GeographicLib's GARS class

Accuracy: Identical to GeographicLib's GARS class (within 1e-13°)

When to use this: Use this when a GARS code arrives in a message, a plan, or a product and you need the ground it refers to: it returns the center and the bounds of the cell, quadrant, or keypad, at whatever precision the code carries. It is the counterpart to the encoder, so a cell named in a tasking message or an overlay can be drawn on a map with its true extent rather than as a point.

Limitations: The code names a cell, so the true position is anywhere inside it and the center is a convenience rather than the point. Codes of different lengths mean different areas, and a keypad cell is still about nine kilometers across at the equator. No datum is implied beyond WGS 84. The three precisions are nested but very different in size, from thirty minutes down to five, so reading a code at the wrong length puts the area out by a factor of six in each direction.

Worked example: 381NH45. Source: GeographicLib GARS documentation.

You enter

GARS
381NH45

You get

Center latitude
57.625°
Center longitude
10.375°
South edge
57.583333333°
West edge
10.333333333°
North edge
57.666666667°
East edge
10.416666667°

Review: Not yet independently reviewed by a geodesist.

Last verified: 2026-09-18, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 25 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Terms

GARS: Global Area Reference System
A worldwide grid of 30-minute cells, split into 15- and 5-minute quadrants and keypads, used to name areas. Source: Global Area Reference System