zipcodes

ZIP code locations and place names

Postal codes mapped to their geographical coordinates (latitude/longitude in WGS84) and administrative hierarchies, for the United States and Puerto Rico. The GeoNames geographical database provides worldwide postal code data with associated geographical and administrative information.

Historical snapshot first contributed to vega-datasets in 2017 and no longer current. Administrative boundaries have been redrawn, counties reorganized and renamed, and postal codes modified. Latitude/longitude coordinates have been updated by Geonames since this data was collected. For current postal code data, refer to the main GeoNames database.

CSV 42,049 rows 6 fields 2.0 MB 2 gallery examples 2 examples

Fields

FieldTypeDistributionSummaryMissing
zip_codeAdd a description for zip_code integer 501 – 99,950 · mean 49,490 Missing 0
latitudeAdd a description for latitude number -7.21 – 70.49 · mean 38.5 Missing 0
longitudeAdd a description for longitude number -176.8 – 166.4 · mean -90.81 Missing 0
cityAdd a description for city string 18,931 distinct Washington 300 · Houston 190 · New York 162 Missing 0
stateAdd a description for state string 59 distinct TX 2,670 · CA 2,666 · NY 2,232 Missing 0
countyAdd a description for county string 1,929 distinct Los Angeles 528 · Jefferson 511 · Washington 457 Missing 0

Profiled across all 42,049 rows. No field descriptions yet. Add them

Explore

The zipcodes map, as the starter chart draws it
Vega-Lite · circle mark · equalEarth projection · tooltipVega-Lite · circle mark · equalEarth projection · tooltip
Open This Chart in the Vega Editor

Preview

First 5 of 42,049 rows5 of 42,049 rows
zip_codelatitudelongitudecitystatecounty
0050140.922326-72.637078HoltsvilleNYSuffolk
0054440.922326-72.637078HoltsvilleNYSuffolk
0060118.165273-66.722583AdjuntasPRAdjuntas
0060218.393103-67.180953AguadaPRAguada
0060318.455913-67.14578AguadillaPRAguadilla

Scroll sideways for all 6 fields.

Examples

Vega and Vega-Lite examples open in the Editor with this dataset loaded. Altair examples link to their Python source.

Provenance

Source
License
File
data/zipcodes.csv · 2,018,388 bytes · View on GitHub