---
id: "ch_didok_number"
kind: "datatype"
status: "draft"
is_pii: false
name: "Swiss service point number (DiDok number)"
regexp: "^[1-9]\\d{0,4}$"
categories: ["transport"]
country: ["CH"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ch_didok_number"
---

# Swiss service point number (DiDok number) (`ch_didok_number`)

> **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 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 datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Transportation (transport)
- Countries: Switzerland (CH)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[1-9]\d{0,4}$
```

## Examples

- `7000` — the stop of the Swiss Location ID example ch:1:sloid:7000
- `3000` — Zürich HB, BPUIC 8503000 (open data of data.sbb.ch)
- `10` — Basel SBB, BPUIC 8500010
- `07000` (invalid example) — leading zero
- `8507000` (invalid example) — the BPUIC number with the country code (uiccode)

## Metacrafter rules

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

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

## Supported by tools

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

## Translations

- de: DiDok-Nummer (Dienststellennummer)
- ru: Номер пункта обслуживания DiDok (Швейцария)

## Sources

- doc: <https://www.tp-info.ch/sites/default/files/2023-04/swisslocationid_de_1_2.pdf>

## Quality

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

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