Data structures
The key
No single Census layer contains every zoning jurisdiction: a city is a place, a Michigan township is a county subdivision, and the unincorporated part of a county is the county itself. So the key is a GEOID from one of three summary levels, told apart by their fixed widths — 5, 7 or 10 digits can never collide. A jurisdiction the registry cannot yet place on the Census map is addressed by its registry id instead, written with a prefix — id-12047 — so it can never be read as a GEOID.
County governments zoning their unincorporated remainder.
/localities/06037 — Los Angeles County, CA — the unincorporated areas
Incorporated cities, towns, boroughs and villages.
/localities/0644000 — the City of Los Angeles, CA
Townships and New England towns — where the subdivision is a government.
/localities/2608100240 — Ada township, Kent County, MI
A district address names its jurisdiction: /localities/06037/districts/A-1 is the A-1 district of unincorporated Los Angeles County — “A-1” names a different district in every code that uses it, so the code alone addresses nothing.
How the levels nest
Which level a jurisdiction keys at is a fact about state law, not a choice of this site. In most states the county-subdivision layer is a statistical fiction and zoning authority is place-or-county; in the strong-township states the subdivision is the government. One precedence rule covers both worlds.
0644000 is Los Angeles city, 06037 Los Angeles County, 2608100240 Ada township in Kent County, Michigan. Colors mark the summary level a jurisdiction keys at — blue place, gold county subdivision, amber county.How the registry resolves
17,634 of 30,046 jurisdictions in the registry have a GEOID, assigned at database build time (sql/locality-geoid.sql) by the first rule that matches:
- 1Its Census place. A registry row with a place code joins TIGER on
state + place— exact for every row that has one. - 2Its county subdivision, where
state + subdivisionis unique statewide. The ambiguous pairs — a subdivision code is only defined within its county — resolve to nothing rather than to a guess. - 3Its county, for county unincorporated rows, through the pipeline’s own record of which county each subdivision defers to, then by unique county name.
What doesn’t resolve (12,412 rows). Rows the registry filed without the codes a match needs: most carry no state FIPS code, and the townships of the strong-township states (PA, MI, WI, OH, IN…) come without a county code, where a name cannot separate the 49 “Washington township”s of Iowa. These are addressed by registry id — /localities/id-12047 — until the registry itself is enriched, and then the GEOID takes over and the old address redirects to it.
Legacy URLs redirect. The old numeric addresses were surrogate keys — row numbers, stable only by accident. /localities/836 answers with a permanent redirect to /localities/06037; links keep working, and the GEOID form is the one search engines are told is canonical. A bare number that is also a GEOID means the GEOID — 37163 is Sampson County, NC, whatever row once carried that number — which is why a registry id now travels with its id- prefix.
One key, one jurisdiction. Where the registry holds duplicate rows for the same real-world government (a “Shamong” and a “Shamong Township”), the GEOID goes to the row with extracted content and the duplicate keeps its registry id — the key is unique by construction, and the database enforces it.
One caveat, stated plainly. A few hundred place-level rows resolve to census-designated places — unincorporated communities with a Census boundary but no government of their own. Their GEOIDs are real TIGER features and the URLs are stable, but the zoning authority over that ground is the surrounding county or township.
Joining your own data against it
Because the key is plain Census geography, any dataset that knows where it is can derive the same key and join — no crosswalk table. For a parcel (or any point) with its TIGER codes, the governing jurisdiction is the first of:
1. inside an incorporated place? → statefp || placefp (160, 7 digits) 2. subdivision has a government? → statefp || countyfp || cousubfp (060, 10 digits) (TIGER funcstat = 'A') 3. otherwise → statefp || countyfp (050, 5 digits)
The order matters and is the same rule the registry resolves by: a New York village sits inside a town and both have zoning codes — the village’s governs, and the village is the place. Note that a parcel’s county and subdivision codes alone are not enough in place states: the Los Angeles CCD in the diagram contains four cities and county land under one subdivision code, so telling a city parcel from an unincorporated one takes a point-in-polygon against TIGER’s place layer.
Short links: zoningcode.link
zoningcode.link turns a jurisdiction key and a zone code into one short, permanent link to the district address above. The link is the address — the two parts joined by a dot — so nothing is looked up, and a link works for as long as its key does:
https://zoningcode.link/<key>.<zone code> → /localities/<key>/districts/<zone code> zoningcode.link/06037.A-1 county 050 → /localities/06037/districts/A-1 zoningcode.link/5144984.R-1 place 160 → /localities/5144984/districts/R-1 zoningcode.link/2605731080.A-1 subdivision 060 → /localities/2605731080/districts/A-1 zoningcode.link/id-12047.R-1 registry id → /localities/id-12047/districts/R-1
The key is this page’s key. Any key a /localities address accepts works in a link — a GEOID of 5, 7 or 10 digits, or an id- registry key — and the redirect carries it through, so a legacy numeric key still lands on its canonical address. No key contains a dot, so the first dot ends the key and the code may carry dots of its own (RPD-5000-2.9U).
The code is written as the ordinance writes it, percent-encoded outside the characters a URL carries safely: R-10/5 travels as 53077.R-10%2F5. The redirect re-encodes it the way district addresses are written, and the district page matches codes case-insensitively.
Parcel links follow the joining rule. The parcel pipeline behind Landstats gives each parcel its link: the key comes from the parcel’s own TIGER codes by the rule above — incorporated place, then governmental subdivision, then county — and the code is spelled as the jurisdiction’s ordinance spells it where the ordinance has that district. One addition comes from the registry: a township it records as governed by its county, with no locality of its own, takes the county’s key — the same deferral rule 3 resolves county unincorporated rows by. These are the townships of Illinois, Indiana, Kansas and their neighbors: governments that do not zone.
No link rather than a wrong one. A parcel gets no link when its jurisdiction has no locality on this site, or when its code is neither catalogued there nor shaped like a zone code — the test the “not yet catalogued” page applies. Nothing falls back: a county’s R-1 is a different district from a city’s or a township’s, so a gap in the registry costs a link and never sends one to the wrong code.
See also: the database schema, where zoning_locality.geoid and sumlev live, and the Census Bureau’s own GEOID documentation for the summary-level vocabulary this page borrows.