Geographic Coordinates (DMS / MGRS)

Detects geographic coordinates written in degrees-minutes-seconds (DMS) form with a hemisphere letter (e.g. 40 deg 26' 46" N) and in Military Grid Reference System (MGRS) form (e.g. 4QFJ 12345 67890). The registry already covers decimal-degree coordinates; this adds the DMS and MGRS notations commonly found in mapping exports, surveying records, defence/geospatial documents and EXIF-derived location data.

Type
regex
Engine
universal
Confidence
medium
Confidence justification
Medium confidence: the DMS branch is well constrained by the degree/minute/second marks and a hemisphere letter, but the MGRS branch can collide with other letter-then-digit identifiers. Corroborative location keywords within 300 characters improve precision for bulk scanning.
Jurisdictions
global
Regulations
GDPR
Frameworks
ISO 27001, ISO 27701
Data categories
location, pii
Scope
wide
Risk rating
4
Platform compatibility
Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, Palo Alto: Unsupported, Netskope: Unsupported

Pattern

\b(?:90\s?[°º]\s?0{1,2}\s?['′]\s?0{1,2}(?:\.0+)?\s?["″]?\s?[NSns]\b|[0-8]?\d\s?[°º]\s?[0-5]?\d\s?['′]\s?[0-5]?\d(?:\.\d+)?\s?["″]?\s?[NSns]\b|180\s?[°º]\s?0{1,2}\s?['′]\s?0{1,2}(?:\.0+)?\s?["″]?\s?[EWew]\b|(?:1[0-7]\d|\d{1,2})\s?[°º]\s?[0-5]?\d\s?['′]\s?[0-5]?\d(?:\.\d+)?\s?["″]?\s?[EWew]\b)|(?<![A-Za-z0-9])\d{1,2}[C-HJ-NP-Xc-hj-np-x][A-HJ-NP-Za-hj-np-z][A-HJ-NP-Va-hj-np-v]\s?\d{2,5}\s?\d{2,5}(?![A-Za-z0-9])

Corroborative evidence keywords

coordinates, latitude, longitude, GPS, location, geolocation, grid reference, MGRS

Proximity: 300 characters

Should match

Should not match

Known false positives

References