---
id: "unece_rec19_transport_mode_code"
kind: "pattern"
status: "draft"
is_pii: false
categories: ["transport", "shipping"]
langs: ["common"]
quality: 75
url: "https://registry.apicrafter.io/datatype/unece_rec19_transport_mode_code"
---

# UN/ECE Recommendation 19 mode of transport code (`unece_rec19_transport_mode_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.

One-digit code of a mode of transport from UN/ECE Recommendation 19, used in customs declarations, UN/EDIFACT and UBL documents: 0 not specified, 1 maritime, 2 rail, 3 road, 4 air, 5 mail, 6 multimodal, 7 fixed transport installations such as pipelines, 8 inland water, 9 not applicable. A single digit only means this in a transport mode column, so the field name is the evidence.

- Pattern of: `transport_mode`
- Personal data (PII): no
- Categories: Transportation (transport), Shipping and delivery (shipping)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[0-9]$
```

## Examples

- `1` — Maritime transport
- `3` — Road transport
- `4` — Air transport
- `10` (invalid example) — Two digits

## Sources

- doc: <https://docs.oasis-open.org/ubl/os-UBL-2.1/cl/gc/default/TransportModeCode-2.1.gc>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

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