{
  "id": "mgrs",
  "kind": "datatype",
  "status": "draft",
  "name": "Military Grid Reference System (MGRS) coordinate",
  "doc": "Position written in the Military Grid Reference System of NATO, which is based on UTM. It is a grid zone designator (a UTM zone number from 1 to 60 and a latitude band letter from C to X without I and O), a two-letter identifier of a 100 km square, and an even number of digits, up to ten, that give the easting and then the northing within the square: four digits locate a 1 km square, ten digits a 1 m square. Spaces between the parts are optional. The regexp does not cover the polar regions, which use the UPS form with bands A, B, Y and Z.",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^(?:[1-9]|[1-5][0-9]|60)[C-HJ-NP-X] ?[A-HJ-NP-Z][A-HJ-NP-V](?: ?(?:\\d ?\\d|\\d{2} ?\\d{2}|\\d{3} ?\\d{3}|\\d{4} ?\\d{4}|\\d{5} ?\\d{5}))?$",
  "examples": [
    {
      "value": "4Q FJ 1234 6789",
      "description": "10 m precision, example from the Wikipedia article",
      "valid": true
    },
    {
      "value": "4QFJ12346789",
      "description": "The same position without spaces",
      "valid": true
    },
    {
      "value": "4QFJ",
      "description": "100 km square only",
      "valid": true
    },
    {
      "value": "4Q FJ 123 6789",
      "description": "Easting and northing of different lengths",
      "valid": false
    },
    {
      "value": "61Q FJ 1234 6789",
      "description": "There are only 60 zones",
      "valid": false
    }
  ],
  "mappings": {
    "autotype": "mgrs"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Military_Grid_Reference_System"
    },
    {
      "type": "other",
      "url": "https://github.com/congy/AutoType/blob/master/data_release/mgrs.txt"
    }
  ],
  "translations": {
    "ru": {
      "name": "Координата MGRS",
      "doc": "Положение в военной системе координатной сетки НАТО (MGRS): зона UTM, квадрат 100 км и чётное число цифр восточного и северного смещения."
    }
  },
  "detected_by": {
    "tools": [
      "autotype"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/any/geo/mgrs.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/geo/mgrs.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/geo/mgrs.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/mgrs",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/mgrs.json"
  }
}