Coordinates · 3 min read
Decimal degrees, DMS, MGRS and geohash — reading a coordinate
By the RICE team · Published 14 October 2026
The same spot on the ground can be written half a dozen ways: −26.2041, 28.0473; 26°12′14.8″S 28°02′50.3″E; a string of letters and digits from a military grid; or a short geohash of letters and digits. Each exists for a reason. Knowing which you are looking at saves a lot of wrongly placed points.
Decimal degrees
Decimal degrees (DD) are what software prefers: latitude and longitude as signed numbers. South and west are negative. Johannesburg is −26.2041, 28.0473.
How many decimals you need depends on the job:
| Decimals | Precision at the equator | Good for |
|---|---|---|
| 2 | about 1.1 km | Town or suburb |
| 3 | about 110 m | Neighbourhood |
| 4 | about 11 m | A property |
| 5 | about 1.1 m | A building entrance |
| 6 | about 11 cm | Survey pegs |
Anything beyond six decimals is noise from a GPS or a conversion, not real precision.
Degrees, minutes, seconds
DMS is the traditional notation, still used on topographic sheets, title deeds and aviation charts. One degree is 60 minutes; one minute is 60 seconds. One second of latitude is about 31 m on the ground.
DD = degrees + minutes / 60 + seconds / 3600
26° 12′ 14.8″ S → 26 + 12/60 + 14.8/3600 = 26.2041 → −26.2041 ~~~
Hemisphere letters replace the sign. The commonest error is writing 26°12′14.8″ without the S and letting software assume north — that point lands in the Sahara rather than Gauteng. Another is mixing notations: 26.2041°S with a minus sign as well, which some parsers read as north.
A middle form, degrees and decimal minutes (26° 12.247′ S), is common on marine GPS units. Treat it like DMS with the seconds folded into the minutes.
MGRS
The Military Grid Reference System is built on UTM. A full reference has three parts:
- Grid zone designator — UTM zone number plus an 8° latitude band letter. Johannesburg is in 35J.
- 100 km square — two letters identifying a 100 km × 100 km square inside the zone.
- Easting and northing digits — an equal number of each. Two digits each give 1 km precision, four give 10 m, five give 1 m.
MGRS is used by defence, emergency services and search-and-rescue because it is unambiguous over a radio and works without negative numbers. The band letter is not a hemisphere letter — see UTM zones explained for why “34S” is ambiguous.
Geohash
A geohash encodes latitude and longitude into a short string in a 32-character alphabet. Each extra character narrows the cell:
| Length | Cell size, roughly |
|---|---|
| 5 | 4.9 km × 4.9 km |
| 6 | 1.2 km × 0.6 km |
| 7 | 153 m × 153 m |
| 8 | 38 m × 19 m |
| 9 | 4.8 m × 4.8 m |
Geohashes are handy as database keys and for grouping points — nearby places usually share a prefix. They are not good for measuring: cells are rectangles in degrees, and two neighbouring places either side of a cell boundary can have completely different codes.
A conversion checklist
- Check the hemisphere. In Southern Africa latitude must be negative, or carry an S.
- Check the order. Spreadsheets usually say latitude first; GeoJSON and most code say longitude first.
- Check the range. Latitude must be within ±90, longitude within ±180. A “latitude” of 604 215 is a projected coordinate, not degrees.
- Round sensibly — five or six decimals.
RICE’s Coordinates tool reads any of these four formats and returns all of them at once, and converts a whole pasted column to GeoJSON or CSV.
Decimal degrees, DMS, MGRS or geohash in — every format out, for one point or a whole column.
Open the toolWritten and maintained by the RICE team at LocalID IQ Pty Ltd. Questions or corrections: info@rice.org.za. About RICE.
