Geocode USA and Canada

Datasets APIs

Note: We use Web Mercator, also known as Google Web Mercator, Spherical Mercator, WGS 84 Web Mercator or WGS 84/Pseudo-Mercator. Are you a non-for-profit? If Yes, the postal code dataset is free if you abide by our Terms and Conditions. Send us an email at [email protected]

Geocoder.ca provides geocoding, batch geocoding and geoparsing services for Canada and the USA, free of charge to the users of this website.
The following conditions apply to all looking for free access of the XML/JSON/CSV port or data products.

  1. Such an entity must be a non-for-profit.
  2. And provide proper attribution for the service.
...

Premium Canada Postal Code Datasets

The Canadian Postal Code Dataset, last update on 2020-06-01 00:15:04, affecting 7436 records, has a total of 859666 unique postal codes.
The Canadian Crowdsourced Postal Codes Geocoded Dataset consists of 4 databases:

1. Summary File - Canada Postal Code Dataset (859666 unique postal codes as of the last update on 2020-06-01 00:15:04) Sample:

"PostCode","Latitude","Longitude","City","Province","CityAlt","Neighborhood","Time Zone","Name","Area Code"

"G1A1A3","46.808643","-71.215256","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1A4","46.808643","-71.215256","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1A5","46.808142","-71.214923","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1A8","46.817426","-71.212300","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1A9","46.817611","-71.212510","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1B4","46.809317","-71.216464","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1B5","46.811087","-71.214564","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1B7","46.817037","-71.211242","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1B8","46.817038","-71.211242","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1B9","46.817039","-71.211242","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1C1","46.817040","-71.211242","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1C2","46.817041","-71.211242","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1C3","46.817042","-71.211242","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1C5","46.809002","-71.215495","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"
"G1A1C6","46.816820","-71.212041","Québec","QC","Quebec","Vieux-Quebec","UTC-05:00","America/Montreal","581"

...
2. Complete File - Canada Postal Address Database (14581213 records as of 2020-06-02 21:06:39) Sample:
"PostCode","Number","Street","City","Province","Latitude","Longitude","Street Name","Type","Direction","Confidence","aType","Unit","Count","Geonumber"

...
"K2C1N3","1282","Prince Of Wales Drive","Ottawa","ON","45.371667","-75.708512","Prince Of Wales","DR","","0.9","RES","","1","2451479789726"
"K2C1N3","1284","PRINCE OF WALES DRIVE","Ottawa","ON","45.371547","-75.708234","PRINCE OF WALES","DR","","1","RES","","1","2451479789753"
"K2C1N3","1288","Prince Of Wales Drive","Ottawa","ON","45.371530","-75.707841","Prince Of Wales","DR","","0.9","RES","","1","2451479789771"
"K2C1N3","1290","Prince Of Wales Drive","Ottawa","ON","45.371469","-75.707916","Prince Of Wales","DR","","1","RES","","1","2451479789772"
"K2C1N5","1435","M1435 PRINCE OF WALES","Ottawa","ON","45.370308","-75.701596","M1435 PRINCE OF WALES","","","1","RES","","1","2451479786453"
"K2C1N5","1345","Prince Of Wales","Ottawa","ON","45.370785","-75.704127","PRINCE OF WALES","","","0.9","RES","","1","2451479789009"
"K2C1N5","1435","prince of wales","Ottawa","ON","45.370308","-75.701596","PRINCE OF WALES","","","1","RES","","1","2451479786453"
"K2C1N5","1345","Prince of Wales DR","Ottawa","ON","45.370785","-75.704127","Prince of Wales","DR","","0.9","RES","","1","2451479789009"
"K2C1N5","1435","PRINCE OF WALES DR","Ottawa","ON","45.370308","-75.701596","PRINCE OF WALES","DR","","1","RES","916","177","2451479786453"
"K2C1N5","1435","PRINCE OF WALES DR","Ottawa","ON","45.363615","-75.701044","PRINCE OF WALES","DR","","0.9","RES","918","177","2451479776238"
"K2C1N5","1435","PRINCE OF WALES DR","Ottawa","ON","45.370308","-75.701596","PRINCE OF WALES","DR","","1","RES","917","177","2451479786453"
"K2C1N5","1435","PRINCE OF WALES DR","Ottawa","ON","45.370308","-75.701596","PRINCE OF WALES","DR","","1","RES","914","177","2451479786453"
"K2C1N5","1435","PRINCE OF WALES DR","Ottawa","ON","45.370308","-75.701596","PRINCE OF WALES","DR","","1","RES","909","177","2451479786453"
"K2C1N5","1435","PRINCE OF WALES DR","Ottawa","ON","45.370308","-75.701596","PRINCE OF WALES","DR","","1","RES","908","177","2451479786453"
"K2C1N5","1435","PRINCE OF WALES DR","Ottawa","ON","45.370308","-75.701596","PRINCE OF WALES","DR","","1","RES","907","177","2451479786453"

...

"Confidence" is the geocoding confidence score. A score of "1" means "rooftop" geocoding result, everything else is interpolated.
"aType" is the address type. It takes one of two values: "Res" -> Residential Address, or "NonRes" -> Non Residential.
"Unit" is the unit/apartment/suite/etc number (if applicable.)
"Count" is the number of units/apartments/suites/etc in the address.
"Geonumber" is a unique location identifier based on the Hilbert curve. Nearby locations have similar geonumbers. Canadian geonumbers range from 2472540428642 to 1265540868972. You may use Geonumbers instead of latitude,longitude on Geocode.xyz and 3Geonames.org. For eg: geocode.xyz/2451479786453 or api.3geonames.org/2451479786453.

3. Canada Postal Code Polygons Sample: (polygons of postal codes in dataset #1 - provided as a shapefile) Click here for an example polygon.



4. Postal Code and Census Information File Sample: (additional census information for postal codes in dataset #1)
"PostCode","Latitude","Longitude","City","Province","CityAlt","Neighborhood","Time Zone","Name","Area Code","Census_Subdivision_cmauid","Census_Subdivision_pruid","Census_Subdivision_ername","Census_Subdivision_csdtype","Census_Subdivision_cmatype","Census_Subdivision_cdname","Census_Subdivision_csduid","Census_Subdivision_cdtype","Census_Subdivision_sactype","Census_Subdivision_saccode","Census_Subdivision_prname","Census_Subdivision_cmapuid","Census_Subdivision_csdname","Census_Subdivision_cduid","Census_Subdivision_ccsname","Census_Subdivision_eruid","Census_Subdivision_ccsuid","Census_Subdivision_cmaname","Aggregate_Dissemination_pruid","Aggregate_Dissemination_cdname","Aggregate_Dissemination_cdtype","Aggregate_Dissemination_cduid","Aggregate_Dissemination_adauid","Aggregate_Dissemination_prname","Population_Ecumene_ecumene","Population_Ecumene_ecuid","Census_Consolidated_Subdivision_pruid","Census_Consolidated_Subdivision_cdname","Census_Consolidated_Subdivision_cdtype","Census_Consolidated_Subdivision_ccsname","Census_Consolidated_Subdivision_cduid","Census_Consolidated_Subdivision_ccsuid","Census_Consolidated_Subdivision_prname","Dissemination_Block_cmauid","Dissemination_Block_pruid","Dissemination_Block_ctuid","Dissemination_Block_ername","Dissemination_Block_csdtype","Dissemination_Block_ctname","Dissemination_Block_cmatype","Dissemination_Block_csduid","Dissemination_Block_cdname","Dissemination_Block_dbuid","Dissemination_Block_cdtype","Dissemination_Block_sactype","Dissemination_Block_adauid","Dissemination_Block_saccode","Dissemination_Block_dauid","Dissemination_Block_prname","Dissemination_Block_cmapuid","Dissemination_Block_dbrplamx","Dissemination_Block_feduid","Dissemination_Block_dbrplamy","Dissemination_Block_csdname","Dissemination_Block_fedname","Dissemination_Block_cduid","Dissemination_Block_ccsname","Dissemination_Block_eruid","Dissemination_Block_ccsuid","Dissemination_Block_cmaname","Census_Metropolitan_Areas_And_Census_Agglomeration_pruid","Census_Metropolitan_Areas_And_Census_Agglomeration_cmauid","Census_Metropolitan_Areas_And_Census_Agglomeration_cmatype","Census_Metropolitan_Areas_And_Census_Agglomeration_prname","Census_Metropolitan_Areas_And_Census_Agglomeration_cmaname","Census_Metropolitan_Areas_And_Census_Agglomeration_cmapuid","Designated_Place_pruid","Designated_Place_dpluid","Designated_Place_dplname","Designated_Place_prname","Designated_Place_dpltype","Census_Division_pruid","Census_Division_cdname","Census_Division_cdtype","Census_Division_cduid","Census_Division_prname","Federal_Election_frname","Federal_Election_revdt","Federal_Election_creadt","Federal_Election_enname","Federal_Election_nid","Federal_Election_provcode","Federal_Election_quipopcnt","Federal_Election_fednum","Federal_Election_decpopcnt","Federal_Election_reporder","Census_Tract_cmauid","Census_Tract_pruid","Census_Tract_ctuid","Census_Tract_cmatype","Census_Tract_ctname","Census_Tract_prname","Census_Tract_cmaname","Census_Tract_cmapuid","Economic_Region_pruid","Economic_Region_ername","Economic_Region_eruid","Economic_Region_prname","Dissemination_Area_cmauid","Dissemination_Area_pruid","Dissemination_Area_ctuid","Dissemination_Area_ername","Dissemination_Area_csdtype","Dissemination_Area_ctname","Dissemination_Area_cmatype","Dissemination_Area_csduid","Dissemination_Area_cdname","Dissemination_Area_cdtype","Dissemination_Area_sactype","Dissemination_Area_adauid","Dissemination_Area_saccode","Dissemination_Area_dauid","Dissemination_Area_prname","Dissemination_Area_cmapuid","Dissemination_Area_csdname","Dissemination_Area_cduid","Dissemination_Area_ccsname","Dissemination_Area_eruid","Dissemination_Area_ccsuid","Dissemination_Area_cmaname","Population_Centre_cmauid","Population_Centre_pruid","Population_Centre_pcclass","Population_Centre_pcuid","Population_Centre_cmatype","Population_Centre_pcname","Population_Centre_pctype","Population_Centre_pcpuid","Population_Centre_prname","Population_Centre_cmaname","Population_Centre_cmapuid","Census_Agricultural_pruid","Census_Agricultural_caruid","Census_Agricultural_carename","Census_Agricultural_carfname","Census_Agricultural_prname","ISED","ISEDname","Provincial_Riding_of"

"K2C1N5","45.370316","-75.701609","Ottawa","ON","Ottawa","Carleton Heights - Rideauview","UTC-05:00","","","505","35","Ottawa","CV","B","Ottawa","3506008","CDR","1","505","Ontario","35505","Ottawa","3506","Ottawa","3510","3506008","Ottawa - Gatineau (Ontario part / partie de l'Ontario)","35","Ottawa","CDR","3506","35060141","Ontario","na","na","35","Ottawa","CDR","Ottawa","3506","3506008","Ontario","505","35","5050020.01","Ottawa","CV","0020.01","B","3506008","Ottawa","35061252001","CDR","1","35060141","505","35061252","Ontario","35505","7472168.67124501","35075","1185140.16825001","Ottawa","Ottawa Centre / Ottawa-Centre","3506","Ottawa","3510","3506008","Ottawa - Gatineau (Ontario part / partie de l'Ontario)","35","505","B","Ontario","Ottawa - Gatineau (Ontario part / partie de l'Ontario)","35505","na","na","na","na","na","35","Ottawa","CDR","3506","Ontario","Ottawa-Centre","na","20131005","Ottawa Centre","{685CEE05-174D-4EE4-837E-A70ECC5A86BB}","ON","na","35075","113619","2013","505","35","5050020.01","B","0020.01","Ontario","Ottawa - Gatineau (Ontario part / partie de l'Ontario)","35505","35","Ottawa","3510","Ontario","505","35","5050020.01","Ottawa","CV","0020.01","B","3506008","Ottawa","CDR","1","35060141","505","35061252","Ontario","35505","Ottawa","3506","Ottawa","3510","3506008","Ottawa - Gatineau (Ontario part / partie de l'Ontario)","505","35","4","0616","B","Ottawa - Gatineau","1","350616","Ontario","Ottawa - Gatineau (Ontario part / partie de l'Ontario)","35505","35","3504","Eastern Ontario Region","Région de l'Est de l'Ontario","Ontario","ON45360757","Ottawa","Ottawa Centre"

Data Samples: Summary Postal Code (dataset # 1) | Postal Address (dataset # 2) | Canada Postal Code Polygons (dataset # 3) | Postal Code Census Data (dataset # 4)

Optional Downloads: Neighborhood Polygons, City Polygons for both USA and Canada (derived from the postal code dataset)

Price: $550CAD one time fee + $50 per month for updates and more file options (optional - the dataset is updated on the 1st day of each month)

| Register to purchase the Canadian Postal Code Dataset (Immediate Download upon purchase.) Unrestricted Use License

The Unrestricted Use License implies there are no restrictions on the use of our data, if you abide by our general terms of service.

Our canadian crowdsourced postal code dataset contains over 850,000 postal codes. (As of the last update on 2020-06-01 00:15:04, 7436 records were added and the exact number is 859666 unique postal codes, all verified and geocoded to street level accuracy)

Optional Downloads:

Neighborhood Polygons: Canada | USA | Combined in SQL format.

City Polygons: Canada | USA

USA Zip Code file:  CSV format, gzipped

US Data Products

  1. US Zip+4 Database Containing over 40 Million Records (Cost 2,650USD ):
  2. US Zip5 centroid Database and the US Zip5 Polygons Database (Combined cost 550USD):
Data Samples:

Zip+4 dataset:

"Zip+4","Number","Street Address","City Name","State","Latitude","Longitude","Street Name","Type","Direction"
"11023-2325","95","WOOLEYS LN ","GREAT NECK","NY","40.797986","-73.725117","WOOLEYS","LN",""
"11023-2325","105","WOOLEYS LN ","GREAT NECK","NY","40.798095","-73.724188","WOOLEYS","LN",""
"11023-2415","101","SHORE RD E","GREAT NECK","NY","40.689316","-73.344643","SHORE","RD","E"
"11023-2415","175","SHORE RD E","GREAT NECK","NY","40.793879","-73.712390","SHORE","RD","E"
"11023-1707","325","SHORE RD E","GREAT NECK","NY","40.801332","-73.715025","SHORE","RD","E"
"11023-1707","399","SHORE RD E","GREAT NECK","NY","40.806652","-73.719303","SHORE","RD","E"
"11023-1313","2","GATE RD N","GREAT NECK","NY","40.805200","-73.721662","GATE","RD","N"
"11023-1313","98","GATE RD N","GREAT NECK","NY","40.806496","-73.721926","GATE","RD","N"
"11023-1315","2","GATE RD S","GREAT NECK","NY","40.804108","-73.721691","GATE","RD","S"
"11023-1315","98","GATE RD S","GREAT NECK","NY","40.805073","-73.721877","GATE","RD","S"
"11023-1314","1","GATE RD S","GREAT NECK","NY","40.804066","-73.721683","GATE","RD","S"
"11023-1314","99","GATE RD S","GREAT NECK","NY","40.805073","-73.721877","GATE","RD","S"
"11023-1233","2","END AVE W","GREAT NECK","NY","40.803018","-73.733913","END","AVE","W"
"11023-1233","14","END AVE W","GREAT NECK","NY","40.804003","-73.734068","END","AVE","W"
"11023-1212","16","END AVE W","GREAT NECK","NY","40.804042","-73.733732","END","AVE","W"
"11023-1212","98","END AVE W","GREAT NECK","NY","40.805187","-73.733849","END","AVE","W"
"11023-1221","5","END AVE W","GREAT NECK","NY","40.804042","-73.733732","END","AVE","W"
"11023-1221","99","END AVE W","GREAT NECK","NY","40.805187","-73.733849","END","AVE","W"
"11023-1509","61","BAKER HILL RD ","GREAT NECK","NY","40.800660","-73.728508","BAKER HILL","RD",""
"11023-1509","61","BAKER HILL RD ","GREAT NECK","NY","40.800660","-73.728508","BAKER HILL","RD",""
"11023-1500","69","BAKER HILL RD ","GREAT NECK","NY","40.800762","-73.727584","BAKER HILL","RD",""
"11023-1500","69","BAKER HILL RD ","GREAT NECK","NY","40.800762","-73.727584","BAKER HILL","RD",""

Zip5 Dataset:

Zip5,City,State,Latitude,Longitude,County
11020,GREAT NECK,NY,40.774235,73.718918,NASSAU
11021,GREAT NECK,NY,40.786674,73.726984,NASSAU
11022,GREAT NECK,NY,40.7875,73.725,NASSAU
11023,GREAT NECK,NY,40.799307,73.734257,NASSAU
11024,GREAT NECK,NY,40.813307,73.741391,NASSAU
11025,GREAT NECK,NY,40.8005,73.7288,NASSAU
11026,GREAT NECK,NY,40.8005,73.7288,NASSAU
11027,GREAT NECK,NY,40.7875,73.725,NASSAU
11030,MANHASSET,NY,40.798641,73.688369,NASSAU
11040,NEW HYDE PARK,NY,40.743926,73.68042,NASSAU
11041,NEW HYDE PARK,NY,40.735,73.6883,NASSAU
11042,NEW HYDE PARK,NY,40.7602,73.694978,NASSAU
11043,NEW HYDE PARK,NY,40.7317,73.6821,NASSAU
11044,NEW HYDE PARK,NY,40.735,73.6883,NASSAU
11050,PORT WASHINGTON,NY,40.834995,73.696356,NASSAU
11051,PORT WASHINGTON,NY,40.8308,73.6842,NASSAU
11052,PORT WASHINGTON,NY,40.8308,73.6842,NASSAU
11053,PORT WASHINGTON,NY,40.8255,73.6986,NASSAU
11054,PORT WASHINGTON,NY,40.8308,73.6842,NASSAU
11055,PORT WASHINGTON,NY,40.8255,73.6986,NASSAU
11096,INWOOD,NY,40.621944,73.747222,NASSAU
11099,NEW HYDE PARK,NY,40.735,73.6883,NASSAU
11101,LONG ISLAND CITY,NY,40.750316,73.939393,QUEENS
11102,ASTORIA,NY,40.77063,73.926462,QUEENS
11103,ASTORIA,NY,40.762651,73.914886,QUEENS
11104,SUNNYSIDE,NY,40.743641,73.921556,QUEENS
11105,ASTORIA,NY,40.77627,73.910965,QUEENS
You may check Zip5 polygons online: for eg 11023 Polygon
All our data are encoded as UTF-8