Fixing SNAP Retailer County Names That Do Not Join to County Codes

On this page

Problem statement

The USDA's SNAP retailer list records each store's county as a name, MIAMI DADE or PRINCE GEORGES, not as a FIPS code. Joined to census counties by name and state, 95.9% of the retailers match and the rest silently drop out, and the ones lost are concentrated in a few large counties. Every retailer has coordinates, so a spatial join puts 99.8% of them in a county without using the name at all. This page shows which names fail, why, and where the point and the name disagree.

Quick answer

Build a NAME|STATE key on both sides and see which retailers find no county:

counties = gpd.read_file("data/cb_2024_us_county_20m.zip")
key = counties.assign(k=counties.NAME.str.upper() + "|" + counties.STUSPS).set_index("k").GEOID
snap["key"] = snap.County.str.upper().str.strip() + "|" + snap.State
print(f"retailers whose county name and state match a county: {snap.key.isin(key.index).mean():.1%}")
print(snap.loc[~snap.key.isin(key.index), "key"].value_counts().head(8).to_string())
retailers whose county name and state match a county: 95.9%
key
MIAMI DADE|FL          1241
ST LOUIS|MO             616
PRINCE GEORGES|MD       578
BALTIMORE CITY|MD       577
HARTFORD|CT             529
DU PAGE|IL              493
NEW HAVEN|CT            489
DIST OF COLUMBIA|DC     389

95.9% match by name. Miami-Dade, written without its hyphen, loses 1,241 retailers, then St. Louis, Prince George's, Baltimore City, Hartford, DuPage, New Haven and the District of Columbia, written DIST OF COLUMBIA. Every one is a large county, so a name join undercounts exactly where most people live.

Horizontal bars of retailers whose county name and state find no census county: Miami Dade 1,241, St Louis 616, Prince Georges 578, Baltimore City 577, Hartford 529. Horizontal bars of retailers whose county name and state find no census county: Miami Dade 1,241, St Louis 616, Prince Georges 578, Baltimore City 577, Hartford 529.
The county names that do not join.

Matching names, then locations

1. Why names fail

bad = snap[~snap.key.isin(key.index)]
print(bad.County.str.upper().str.extract(r"(SAINT|ST\.|CITY|BOROUGH|PARISH|CENSUS AREA|MUNICIPIO|DE |LA |-)", expand=False).value_counts().head(6).to_dict())
{'CITY': 1272, 'DE ': 306, 'LA ': 233, 'SAINT': 103}

Among the failures, 1,272 have CITY in the name, then a space inside a name (DE KALB for DeKalb, 306; LA PORTE-style names, 233) and SAINT written out, 103. There are also apostrophes and hyphens the list leaves out. And Connecticut's names are of counties that no longer appear in the census files, which since 2022 use the state's planning regions.

2. The spatial join instead

j = gpd.sjoin(snap.to_crs(counties.crs), counties[["GEOID", "NAME", "NAMELSAD", "STUSPS", "geometry"]], how="left", predicate="within")
j = j[~j.index.duplicated()]
agree = j.County.str.upper().str.strip() == j.NAME.str.upper()
print(f"points in a county: {j.GEOID.notna().mean():.1%}; name agrees with the county the point is in: {agree.mean():.1%}")
points in a county: 99.8%; name agrees with the county the point is in: 94.1%

Every retailer has coordinates, and 99.8% of them fall inside a county; the rest are in territories and on coastlines the generalised file misses (retailers by county). For 94.1% the County field agrees exactly with the county the point is in. The spatial join is the one to use. The name is a check on it.

Horizontal bars: 95.9% of retailers match a county by name, 99.8% fall in a county by location, and for 94.1% the name agrees with the county the point is in. Horizontal bars: 95.9% of retailers match a county by name, 99.8% fall in a county by location, and for 94.1% the name agrees with the county the point is in.
Name join against spatial join.

3. Independent cities

va = j[j.State == "VA"]
print(f"Virginia retailers: {len(va):,}; in an independent city by location: {va.NAMELSAD.str.endswith(' city', na=False).sum():,}; County field says CITY: {va.County.str.contains('CITY', case=False, na=False).sum():,}")
Virginia retailers: 6,022; in an independent city by location: 2,174; County field says CITY: 490

Virginia shows the problem with cities. Of 6,022 retailers, 2,174 lie in an independent city, which is a county-level unit of its own, but only 490 have CITY in the County field. The others give a name that is often also a county's (Fairfax, Roanoke, Franklin), so a name join puts a city store in the county around it.

When the name and the point disagree

The data used on this page

The US Department of Agriculture's Food and Nutrition Service (FNS) publishes every store authorised to accept SNAP benefits as the SNAP Retailer Locator data. The copy used here was downloaded from the FNS feature service on 28 October 2026 and saved on this site, because the list changes every day as stores are authorised and withdrawn. Public domain. County and state boundaries, county populations and the 2020 tract centres of population are the Census Bureau's files, public domain. The setup builds snap, a GeoDataFrame of the retailers' points.

from pathlib import Path
import zipfile

import geopandas as gpd
import numpy as np
import pandas as pd
import requests

Path("data").mkdir(exist_ok=True)
# USDA FNS SNAP Retailer Locator data (every authorised retailer), with the Census Bureau's 2024 county estimates,
# 2020 tract centres of population, counties and states. Saved 28 October 2026: the list changes every day as
# stores are authorised and withdrawn.
# Live: https://services1.arcgis.com/RLQu0rK7h4kbsBq5/arcgis/rest/services/snap_retailer_location_data/FeatureServer/0
ARCHIVE = "usda-snap-retailers-2026-10-28.zip"
if not Path(f"data/{ARCHIVE}").exists():
    Path(f"data/{ARCHIVE}").write_bytes(requests.get(f"https://data.spatialworkflow.io/{ARCHIVE}", timeout=600).content)
Z = zipfile.ZipFile(f"data/{ARCHIVE}")
for f in ["cb_2024_us_county_20m.zip", "cb_2024_us_state_20m.zip"]:
    Path(f"data/{f}").write_bytes(Z.read(f))
snap = pd.read_csv(Z.open("snap-retailers-2026-10-28.csv"), dtype={"Zip_Code": str, "Zip4": str})
snap = gpd.GeoDataFrame(snap, geometry=gpd.points_from_xy(snap.Longitude, snap.Latitude), crs=4326)
print(f"SNAP retailers: {len(snap):,} in {snap.State.nunique()} states and territories")
SNAP retailers: 248,872 in 53 states and territories

Example 1: which to trust

diff = j[~agree & j.GEOID.notna()]
print(f"points whose County field names a different county: {len(diff):,}")
print(diff[["County", "NAME", "STUSPS"]].value_counts().head(5).to_string())
points whose County field names a different county: 14,156
County          NAME             STUSPS
MIAMI DADE      Miami-Dade       FL        1241
ST LOUIS        St. Louis        MO         612
BALTIMORE CITY  Baltimore        MD         571
PRINCE GEORGES  Prince George's  MD         570
HARTFORD        Capitol          CT         493

14,156 points lie in a county other than the one their County field names, and the largest groups are the same spelling differences again: Miami-Dade, St. Louis, Baltimore, Prince George's, and Hartford, whose stores the census files now place in the Capitol planning region. The rest are real disagreements, where either the field or the point is wrong. Print a sample of them with their addresses before deciding which to trust.

Map of Virginia's SNAP retailers with its independent cities shaded, most city retailers in red because their County field does not say CITY, clustered in Hampton Roads, Richmond and Northern Virginia. Map of Virginia's SNAP retailers with its independent cities shaded, most city retailers in red because their County field does not say CITY, clustered in Hampton Roads, Richmond and Northern Virginia.
Virginia's retailers and its independent cities.