Reference

Data structures

Every /localities URL is keyed by the jurisdiction’s Census TIGER GEOID — a public, permanent identifier that names the actual feature on the Census map, joins directly against TIGER geometry and any Census product, and survives database rebuilds.

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.

Countysummary level 050 · 5 digits · state (2) + county (3)1,032 jurisdictions

County governments zoning their unincorporated remainder.

/localities/06037 — Los Angeles County, CA — the unincorporated areas

Placesummary level 160 · 7 digits · state (2) + place (5)10,585 jurisdictions

Incorporated cities, towns, boroughs and villages.

/localities/0644000 — the City of Los Angeles, CA

County subdivisionsummary level 060 · 10 digits · state (2) + county (3) + subdivision (5)6,017 jurisdictions

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.

How jurisdictions nest inside Census geography: in place states the key is the incorporated place or the county; in county-subdivision states townships key at the county-subdivision level and cities key as places.Where incorporated places govern~30 states — CA, TX, FL, the West and South. County subdivisions are statistical.CALIFORNIAstatefp 06Los Angeles County06037 · 050“Los Angeles CCD” — county subdivision, funcstat Sstatistical only: four cities and county land share it. Never a key.Los Angelesincorporated city0644000 · 160Beverly Hillsincorporated city0606308 · 160West Hollywoodincorporated city0684410 · 160Unincorporated remainderoutside every city limit — the county's own zoning code governs→ keys to the county: 06037 · 050Inside a city limit the city's code governs → key is the place (160).Everywhere else the county governs → key is the county (050).A parcel here needs a placefp to tell the two apart —its cousubfp names only the statistical CCD.Where county subdivisions governNew England, NY, NJ, PA, OH, IN, MI, WI, MN… The subdivision is a government.MICHIGANstatefp 26Kent County26081 · 050Ada townshipcousub government (funcstat A)2608100240 · 060Grand Rapidscousub AND place → place wins2634000 · 160Townships hold the zoning code for everything a city hasn't incorporated,so almost no land falls through to the county here.KEY PRECEDENCE — BOTH WORLDS1 · place (160) — inside an incorporated place2 · county subdivision (060) — where it is a government (funcstat A)3 · county (050) — the unincorporated remainder
Real identifiers throughout: 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:

  1. 1Its Census place. A registry row with a place code joins TIGER on state + place — exact for every row that has one.
  2. 2Its county subdivision, where state + subdivision is unique statewide. The ambiguous pairs — a subdivision code is only defined within its county — resolve to nothing rather than to a guess.
  3. 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.