Postal Codes Dataset for Canada, CA

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

Report an issue
Downloads
2,506
Last updated
Rows
907,783
Size
88.1 MB
Format
csv
License · +2 more
CC-BY-4.0

Data Files

1 file

postal-codes-ca-sample

Postal Codes Dataset for Canada (CA)

This dataset lists Canada's postal codes, one row per postal code, covering every province and territory. Each record carries the place name, the province or territory, the Census Division and the Census Subdivision (municipality, town, township or reserve) with their SGC 2021 codes, and WGS84 coordinates. The SGC codes join directly against other Statistics Canada geography.

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

Data Sources

  • Postal codes, address points and mailing municipality names: Statistics Canada, National Address Register, newest release, used under the Statistics Canada Open Licence. Adapted from Statistics Canada, National Address Register. This does not constitute an endorsement by Statistics Canada of this product. Statistics Canada releases the register about every six months.
  • Quebec postal codes, address points and municipality names: Gouvernement du Québec, Référentiel québécois des adresses, CC BY 4.0. Published monthly.
  • Postal codes neither register has (for example PO box and large-volume receiver codes), and their place names and coordinates: © GeoNames, postal code export for Canada (CA_full), CC BY 4.0.
  • Census Division and Census Subdivision names and SGC 2021 codes: contains information licensed under the Open Government Licence – Canada (Statistics Canada 2021 Census cartographic boundary files). Adapted from Statistics Canada, 2021 Census Boundary Files (cartographic boundary files, Census Divisions and Census Subdivisions), reference date 2021. This does not constitute an endorsement by Statistics Canada of this product. The boundary data is used under the Statistics Canada Open Licence Agreement and the Open Government Licence – Canada, as stated by the service that provides it.

Changes made to the source data: for each postal code in the address registers, the coordinate is the median of its address points (in the National Address Register, only buildings whose mail is delivered to a street; in Quebec's register, only current addresses), and the place name is its most common municipality; Quebec's register is used for every code it has. Where a code's addresses are spread over more than about 5 km and GeoNames has a point for it, GeoNames' point is kept. Each postal code's Census Division and Census Subdivision are assigned by placing its coordinate inside the Statistics Canada 2021 boundaries. A postal code that appears more than once in GeoNames keeps one row, named by the alphabetically first place name, with the other names listed as alternative names; coordinates that are demonstrably wrong are removed.

Not endorsed by, or affiliated with, Statistics Canada, the Gouvernement du Québec or GeoNames.

Known limitations

  • accuracy is address where the point comes from the address registers, and GeoNames' 1-6 scale (6 = postal code centroid) where it comes from GeoNames.
  • Codes that are not on any street address (PO boxes, large-volume receivers, some rural route codes) come from GeoNames, which updates its Canada data only occasionally, so some of them may be retired codes.
  • Where a postal code's coordinate could not be placed inside a boundary reliably, the Census Division and Subdivision cells are left blank rather than estimated. A small share of coordinates that were demonstrably wrong have been removed, leaving those cells blank.

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 (format A1A 1A1), never as a number.

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