Datatypes › Thailand › Geographic identifiers
Thai district code (amphoe, khet)
ID th_district_code
DatatypeNot PIIidentifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Four-digit code of a district of Thailand (amphoe, or khet in Bangkok): the two-digit province code (th_province_code) and two digits of the district, as in 1001 for Phra Nakhon and 1030 for Chatuchak in Bangkok. The open data of the Bangkok Metropolitan Administration carries it in a column named dcode beside the district name.
- Categories
- Geographic identifiers, Government related
- Countries
- Thailand
- Languages
- Common to most languages
- Quality
- 90/100 · missing: mapping (Wikidata, Schema.org, ...)
- Metacrafter rules
- 1 rule (1 by field name, 0 by value)
thdistrictcodebynamefield, th/th_codes.yaml
- Supported by tools
- metacrafter
Regular expression
^(?:1[0-9]|2[0-7]|[34][0-9]|5[0-8]|6[0-7]|7[0-7]|8[0-6]|9[0-6])\d{2}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 1001 | Phra Nakhon district, Bangkok |
| 1030 | Chatuchak district, Bangkok |
| 8301 | Mueang Phuket district |
| 2801 invalid | 28 is not a province code |
Translations
| Language | Name | Description |
|---|---|---|
| Thai | รหัสอำเภอ | |
| Russian | Код района Таиланда (ампхе, кхет) |
Sources
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/th_district_code - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/TH/geo/th_district_code.yamlon GitHub