Postal Codes Dataset for Poland, PL

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

Report an issue
Downloads
1,047
Last updated
Rows
72,899
Size
7.04 MB
Format
csv
License
CC-BY-4.0

Data Files

1 file

postal-codes-pl-sample

Postal Codes Dataset for Poland (PL)

This dataset lists Polish postal codes (kody pocztowe) with place names, voivodeships, powiats and gminas, and WGS84 coordinates.

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

Official administrative codes: admin_code2 and admin_code3 are official Polish GUS TERYT powiat (4-digit) and gmina (6-digit) codes, and admin_code1 is the ISO 3166-2:PL voivodeship code.

Data Sources

  • Postal codes, place names, administrative names, TERYT powiat and gmina codes, and coordinates: © GeoNames, postal code export for Poland, CC BY 4.0. GeoNames redistributes the official GUS TERYT codes.
  • Alternative city names: the GeoNames gazetteer for Poland, same licence.

Changes made to the source data: admin_code1 derived as the ISO 3166-2:PL code (PL- prefix stripped) from the TERYT voivodeship number rather than taken from GeoNames' own sequential region numbering; alternative_city_name added from the gazetteer (aliases that merely repeat the place name dropped).

Not endorsed by, or affiliated with, GeoNames.

Known limitations

  • A postal code is not one-to-one with a place. The primary key is (postal_code, place_name, admin_code3): the gmina code is part of the key because a place name can legitimately appear under one postal code in two different gminas.
  • Poland's official postal code register is a commercial product that does not permit redistribution, so this dataset cannot be measured against an authoritative reference. It contains the full content of the open source it is built from, not a verified-complete register of every Polish postal code.
  • Voivodeship names are kept exactly as the source spells them (English exonyms such as "Lower Silesia" and "Lesser Poland" rather than the Polish "dolnoslaskie" and "malopolskie"); only the code was corrected.

Usage

The dataset files are available in CSV format and can be accessed and downloaded using the links provided in datapackage.yaml. Read admin_code2 and admin_code3 as text, never as numbers: the TERYT codes have significant leading zeros (0201 is a valid powiat code, 201 is not).

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-pl/3 files
  • ATTRIBUTION.txthttps://datahub.io/logistics/postal-codes-pl/_r/-/ATTRIBUTION.txt
  • README.mddocumentationhttps://datahub.io/logistics/postal-codes-pl/_r/-/README.md
  • datapackage.yamlmetadata & schemahttps://datahub.io/logistics/postal-codes-pl/_r/-/datapackage.yaml