{
  "id": "ch_didok_number",
  "kind": "datatype",
  "status": "draft",
  "name": "Swiss service point number (DiDok number)",
  "doc": "Number of a service point (a stop, a station, a depot or another operating point) in DiDok, the directory of service points of Swiss public transport. It has at most five digits and no leading zero. With the UIC country code 85 in front it is the seven-digit BPUIC station number (uiccode), and it is the location part of the Swiss Location ID (ch_sloid).",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "transport"
  ],
  "country": [
    "CH"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[1-9]\\d{0,4}$",
  "examples": [
    {
      "value": "7000",
      "description": "the stop of the Swiss Location ID example ch:1:sloid:7000",
      "valid": true
    },
    {
      "value": "3000",
      "description": "Zürich HB, BPUIC 8503000 (open data of data.sbb.ch)",
      "valid": true
    },
    {
      "value": "10",
      "description": "Basel SBB, BPUIC 8500010",
      "valid": true
    },
    {
      "value": "07000",
      "description": "leading zero",
      "valid": false
    },
    {
      "value": "8507000",
      "description": "the BPUIC number with the country code (uiccode)",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.tp-info.ch/sites/default/files/2023-04/swisslocationid_de_1_2.pdf"
    }
  ],
  "translations": {
    "de": {
      "name": "DiDok-Nummer (Dienststellennummer)"
    },
    "ru": {
      "name": "Номер пункта обслуживания DiDok (Швейцария)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "chdidoknumberbyname",
        "type": "field",
        "match": "regex",
        "file": "ch/ch_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/CH/transport/ch_didok_number.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CH/transport/ch_didok_number.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CH/transport/ch_didok_number.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ch_didok_number",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ch_didok_number.json"
  }
}