Datatypes › Thailand › Geographic identifiers
Thai subdistrict code (tambon, khwaeng)
ID th_subdistrict_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).
Six-digit code of a subdistrict of Thailand (tambon, or khwaeng in Bangkok): the four-digit district code (th_district_code) and two digits of the subdistrict, as in 100101 for Phra Borom Maha Ratchawang in the Phra Nakhon district of Bangkok. The open data of the Bangkok Metropolitan Administration carries it in a column named scode.
- 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)
thsubdistrictcodebynamefield, 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{4}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 100101 | Phra Borom Maha Ratchawang, Phra Nakhon, Bangkok |
| 100501 | Anusawari, Bang Khen, Bangkok |
| 290101 invalid | 29 is not a province code |
Translations
| Language | Name | Description |
|---|---|---|
| Thai | รหัสตำบล | |
| Russian | Код подрайона Таиланда (тамбон, кхвэнг) |
Sources
- wikipedia: Tambon (en.wikipedia.org)
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/th_subdistrict_code - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/TH/geo/th_subdistrict_code.yamlon GitHub