Postal Codes Dataset for Thailand, TH

Postal Codes Dataset for Thailand, TH including name of the city, town, or place, various administrative divisions and alternative city names.

Report an issue
Downloads
653
Last updated
Rows
903
Size
59.7 kB
Format
csv
License
CC-BY-4.0

Data Files

1 file

postal-codes-th-sample

Postal Codes Dataset for Thailand (TH)

This dataset lists Thai postal codes at province-level granularity, with province names and WGS84 coordinates. There is no district or sub-district tier.

Column definitions, row count, size and last-updated date are in datapackage.yaml.

Data Sources

Changes made to the source data: alternative_city_name derived from the gazetteer (the first non-numeric alternate name of the gazetteer entry matching the place name); cells copied as text, with no literal "nan" values and no float-formatted accuracy.

Not endorsed by, or affiliated with, GeoNames.

Known limitations

  • Not every Thai province is covered: GeoNames' postal export omits a few provinces, and covers the rest at province level only.
  • District (อำเภอ) and sub-district (ตำบล) tiers are not carried: GeoNames does not provide them for Thailand, so admin_name2, admin_code2, admin_name3 and admin_code3 are empty (apart from one admin_name2 value). A community-repository upgrade with those tiers was evaluated and not shipped: several of its own merged contributions cite Wikipedia (CC BY-SA) as their source, which this project's provenance rules treat as an unresolved licensing risk rather than the clean MIT the repository claims for itself.
  • Coordinates are one GeoNames-estimated point per (postal_code, place_name) row. accuracy follows GeoNames' own scale (1 = estimated, 4 = matched to a gazetteer place, 6 = centroid of addresses/shape) and is blank where GeoNames does not report a value; blank means GeoNames did not classify that row, not zero accuracy.
  • alternative_city_name is re-derived from the current gazetteer on each build, so values can differ from earlier releases.

Usage

The dataset files are available in CSV format and can be accessed and downloaded using the links provided in datapackage.yaml. Read admin_code1 as text, never as a number: GeoNames' two-digit province codes can start with zero.

For other inquiries, contact datahub@datopian.com

API access

Access dataset files directly from scripts, code, or AI agents.

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

  1. Fetch datapackage.yaml to inspect schema and resources
  2. Download data resources listed in datapackage.yaml
  3. Read README.md for full context
/logistics/postal-codes-th/3 files
  • ATTRIBUTION.txthttps://datahub.io/logistics/postal-codes-th/_r/-/ATTRIBUTION.txt
  • README.mddocumentationhttps://datahub.io/logistics/postal-codes-th/_r/-/README.md
  • datapackage.yamlmetadata & schemahttps://datahub.io/logistics/postal-codes-th/_r/-/datapackage.yaml