---
id: "gb_naptan_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "NaPTAN code (SMS code of a GB stop)"
regexp: "^[A-Za-z0-9]{7,8}$"
categories: ["transport"]
country: ["GB"]
langs: ["en"]
quality: 85
url: "https://registry.apicrafter.io/datatype/gb_naptan_code"
---

# NaPTAN code (SMS code of a GB stop) (`gb_naptan_code`)

> **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.

Short public code of a NaPTAN stop point (NaptanCode), seven or eight characters shown on bus stop flags for SMS and web timetable queries. Its letters are chosen so that they are typed with few phone keys. It differs from the ATCO code of the stop (gb_naptan_atco).

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Transportation (transport)
- Countries: United Kingdom (GB)
- Languages: English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-Za-z0-9]{7,8}$
```

## Examples

- `MANJMGMW` — Greater Manchester bus stop
- `MANAJWMG` — Greater Manchester bus stop
- `1800WKH4032` (invalid example) — An ATCO code

## Metacrafter rules

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

- `gbnaptancodefield` (field, `gb/gb_transport.yaml`)

## Supported by tools

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

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/NaPTAN>

## Quality

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

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