{
  "id": "ch_esid",
  "kind": "datatype",
  "status": "draft",
  "name": "Swiss federal street identifier (ESID)",
  "doc": "Number of a street, square or named area in the street directory of the Swiss Federal Register of Buildings and Dwellings (GWR). It is a whole number of eight digits from 10 000 000 to 90 000 000 and is unique across the country. Building address tables carry it next to the EGID and the EDID.",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "CH"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:[1-8]\\d{7}|90000000)$",
  "examples": [
    {
      "value": "10063517",
      "description": "a street of Basel (open data of data.bs.ch)",
      "valid": true
    },
    {
      "value": "10025948",
      "valid": true
    },
    {
      "value": "1006351",
      "description": "seven digits, below the range of the register",
      "valid": false
    },
    {
      "value": "90000001",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://dam-api.bfs.admin.ch/hub/api/dam/assets/7008785/master"
    }
  ],
  "translations": {
    "de": {
      "name": "Eidgenössischer Strassenidentifikator (ESID)"
    },
    "fr": {
      "name": "Identificateur fédéral de rue (ESID)"
    },
    "ru": {
      "name": "Федеральный идентификатор улицы Швейцарии (ESID)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "chesidbyname",
        "type": "field",
        "match": "regex",
        "file": "ch/ch_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/CH/geo/ch_esid.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CH/geo/ch_esid.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CH/geo/ch_esid.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ch_esid",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ch_esid.json"
  }
}