---
id: "ch_esid"
kind: "datatype"
status: "draft"
is_pii: false
name: "Swiss federal street identifier (ESID)"
regexp: "^(?:[1-8]\\d{7}|90000000)$"
categories: ["geo", "government"]
country: ["CH"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ch_esid"
---

# Swiss federal street identifier (ESID) (`ch_esid`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

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 datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Switzerland (CH)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:[1-8]\d{7}|90000000)$
```

## Examples

- `10063517` — a street of Basel (open data of data.bs.ch)
- `10025948`
- `1006351` (invalid example) — seven digits, below the range of the register
- `90000001` (invalid example)

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `chesidbyname` (field, `ch/ch_codes.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- de: Eidgenössischer Strassenidentifikator (ESID)
- fr: Identificateur fédéral de rue (ESID)
- ru: Федеральный идентификатор улицы Швейцарии (ESID)

## Sources

- doc: <https://dam-api.bfs.admin.ch/hub/api/dam/assets/7008785/master>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/ch_esid.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CH/geo/ch_esid.yaml>
