{
  "id": "uic_wagon_number",
  "kind": "datatype",
  "status": "draft",
  "name": "UIC wagon number (European Vehicle Number)",
  "doc": "Twelve-digit number of a railway vehicle, such as a freight wagon, coach or locomotive, in the numbering system of the International Union of Railways (UIC), now the European Vehicle Number (EVN). Digits 1-2 give the vehicle type and interoperability, digits 3-4 the country of registration (before 2006, the owning railway), digits 5-8 the type of vehicle and digits 9-11 the serial number. Digit 12 is a check digit computed with the Luhn algorithm. On the vehicle the groups are separated by spaces and the check digit by a hyphen. Not to be confused with the UIC station code (uiccode).",
  "is_pii": false,
  "categories": [
    "transport"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^\\d{2}[ .-]?\\d{2}[ .-]?(?:\\d[ .]?){7}-?\\d$",
  "checksum": "luhn",
  "examples": [
    {
      "value": "21 81 2471 217-3",
      "description": "Example from the Wikipedia article",
      "valid": true
    },
    {
      "value": "21.81.2471.217-3",
      "description": "The same number with dots",
      "valid": true
    },
    {
      "value": "218124712173",
      "description": "The same number without separators",
      "valid": true
    },
    {
      "value": "21 81 2471 217-4",
      "description": "Wrong check digit",
      "valid": false
    },
    {
      "value": "21 81 2471 21-3",
      "description": "Eleven digits",
      "valid": false
    }
  ],
  "mappings": {
    "autotype": "uic"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/UIC_wagon_numbers"
    },
    {
      "type": "other",
      "url": "https://github.com/congy/AutoType/blob/master/data_release/uic.txt"
    }
  ],
  "translations": {
    "ru": {
      "name": "Номер вагона UIC (European Vehicle Number)",
      "doc": "Двенадцатизначный номер железнодорожного подвижного состава по системе UIC; последняя цифра контрольная (алгоритм Луна)."
    }
  },
  "detected_by": {
    "tools": [
      "autotype"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/any/transport/railway/uic_wagon_number.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/transport/railway/uic_wagon_number.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/transport/railway/uic_wagon_number.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/uic_wagon_number",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/uic_wagon_number.json"
  }
}