Part of a Data Solution
- Explore →
Postal Codes Solution
Every worldwide postal-code dataset in one bundle — the ultimate global reference for precise postal codes.
Premium
You're viewing a free sample
Get the complete dataset — all rows and files — delivered instantly after checkout, with lifetime access to the latest version.
- Secure checkout via Stripe
- Instant download after payment
- Lifetime access to the latest version
- Creative Commons Attribution 4.0 International license
API Access
Access dataset files directly from scripts, code, or AI agents.
Browse dataset files
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.
Start with these files — they give you everything you need to understand and access the dataset.
- 1. Fetch datapackage.yaml to inspect schema and resources
- 2. Download data resources listed in datapackage.yaml
- 3. Read README.md for full context
Data Files
postal-codes-lk-sample
| Field | Type | Description | Constraints | Title |
|---|---|---|---|---|
| country_code | string | ISO 3166-1 alpha-2 -- always LK | Country Code | |
| postal_code | string | Sri Lankan postal code (5 digits) | { "pattern": "^\\d{5}$" } | Postal Code |
| place_name | string | Post office / locality name | Place Name | |
| admin_name1 | string | Province (9 total) | Administrative Name 1 | |
| admin_code1 | string | ISO 3166-2:LK province code | Administrative Code 1 | |
| admin_name2 | string | District -- 24/25 covered | Administrative Name 2 | |
| admin_code2 | string | ISO 3166-2:LK district code | Administrative Code 2 | |
| admin_name3 | string | Not populated -- no third admin tier in this source | Administrative Name 3 | |
| admin_code3 | string | Not populated | Administrative Code 3 | |
| latitude | number | GeoNames latitude (WGS84) | Latitude | |
| longitude | number | GeoNames longitude (WGS84) | Longitude | |
| accuracy | string | GeoNames accuracy of latitude/longitude. GeoNames documents 1=estimated, 4=geonameid, 6=centroid of addresses or shape; other values (e.g. 3) occur upstream without documentation. Empty where GeoNames gives none. | Accuracy | |
| alternative_city_name | string | Not populated in this release | Alternative City Name |
Download
Download sample CSVAbout
- Last updated
- 2 October 2026
- Total rows
- 100
- Format
- CSV
- File size
- 7.58 kB
About this dataset
Postal Codes Dataset for Sri Lanka (LK)
This dataset lists the five-digit postal codes of Sri Lanka with post office and locality names, provinces, districts and WGS84 coordinates. It covers every province and every district except Kilinochchi, which has no rows in the source.
Column definitions, row count, size and last-updated date are in datapackage.yaml.
Data Sources
- Postal codes, place names, administrative divisions and coordinates: © GeoNames, postal code export for Sri Lanka, CC BY 4.0.
Changes made to the source data: province codes (admin_code1, LK-1 to LK-9) and district codes (admin_code2)
recomputed as ISO 3166-2:LK codes by name, and the province name "Province of Uva" written as "Uva Province".
Not endorsed by, or affiliated with, GeoNames.
Known limitations
- Kilinochchi District (LK-42, Northern Province) has no rows in the source and is not filled in.
- The source has no administrative tier below the district, so
admin_name3andadmin_code3are empty.alternative_city_nameis not populated.
Usage
The dataset files are available in CSV format and can be accessed and downloaded using
the links provided in datapackage.yaml. Read postal_code as text, never as a number:
Sri Lankan codes can start with zero (00600).
For other inquiries, contact datahub@datopian.com