geoprimsField-grade geospatial math

Degrees and decimal minutes to decimal degrees

Reads a latitude and longitude written in degrees and decimal minutes and returns them as decimal degrees.

38.6875°

That is 38.6875°, -9.425° (DDM).

Longitude
Notation
DMS
Provenance
Computed by
geodesy.parse.parse-ddm 1.0.0, core 0.1.0
Model
geoprims coordinate grammar (ISO 6709 notations, NGA MGRS)
Accuracy
Exact: every notation converts by exact arithmetic
Notes
None
Cites
International Organization for Standardization, Geographic Point Location, ISO 6709; National Geospatial-Intelligence Agency, Military Grid Reference System, NGA.STND.0037

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: geoprims coordinate grammar (ISO 6709 notations, NGA MGRS)

Show your work

  1. Notation

    which way the position was written

    38°41.250'N 9°25.500'W = DDM

  2. Longitude

    read from that notation, east positive

    38°41.250'N 9°25.500'W = -9.425°

  3. Latitude

    read from that notation, north positive

    38°41.250'N 9°25.500'W = 38.6875°

The same steps an agent gets from the MCP server with explain: true.

Accuracy: Exact: every notation converts by exact arithmetic

When to use this: Use this for a position read off a marine or aviation GPS, a handheld receiver, or a geocache listing, where the notation is degrees and decimal minutes. Paste the text as written, with hemisphere letters or signs. The tool returns the decimal latitude and longitude for a spreadsheet, a GIS, or another calculation, with the position restated in degrees, minutes, and seconds.

Limitations: Only degrees and decimal minutes are accepted here, so a decimal pair, a grid reference, or another notation is refused with a note of what it reads as; the any-notation reader takes those. Text can still be ambiguous about which number is the latitude or which hemisphere an unsigned value means, and the assumption made is stated. No datum is applied: the numbers are whatever datum the text was on.

Worked example: A marine GPS fix off Lisbon. Source: ISO 6709 notation, read by exact arithmetic.

You enter

Coordinate
38°41.250'N 9°25.500'W

You get

Latitude
38.6875°
Longitude
-9.425°
Notation
DDM
DMS
38°41'15.000"N 9°25'30.000"W

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.

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

Sources

Terms

DMS: degrees, minutes, seconds
An angle written as whole degrees, minutes (1/60 degree), and seconds (1/3600 degree), like 40°26'46". Source: ISO 6709 Geographic point location