Reference

The database schema

One pipeline, four layers: a jurisdiction is identified, its adopted code is retrieved chapter by chapter, each chapter is read into rules, and each rule yields discrete requirements — every layer keeping the citation back to the text. The row counts below are live.
state_zoning_statuteone row per state enabling act50delegates the power to zonezoning_localityone row per jurisdiction on the registry30,046ordinance retrieved as chapterszoning_ordinance_contentone row per chapter — OCR text + markdown142,126read into structured ruleszoning_ordinance_rulesone row per district or citywide provision1,226,181each rule yields discrete requirementszoning_ordinance_standardone row per requirement, with its sentence11,310,962zoning_ordinance_sourcecandidate code URLs found in discovery64,113zoning_standard_defvocabulary of standard keys3,322,844

zoning_locality

30,046 rows · one zoning jurisdiction each

The national registry. A row is created when a jurisdiction is identified, long before its ordinance is retrieved — which is what lets the site distinguish no rules exist from not read yet. TIGER FIPS columns join it to Census geometry.

ColumnTypeMeaning
locality_idbigintSurrogate primary key — internal joins only; legacy /localities URLs redirect
geoid · sumlevtextCensus TIGER GEOID and its summary level — the public /localities key; see the identifiers page
locality_name · locality_typetextName and kind — municipality, county unincorporated, township…
state_abbr · state_fipscharState, as postal code and FIPS
placefp · cousubfp · fips_countycharTIGER joins to Census place / county-subdivision / county geometry
discovery_statustextpending → found → acquired; or no_code / unavailable / error
has_zoningbooleanNULL = unknown; FALSE = confirmed to have no zoning code
ordinance_urltextWhere the adopted code was located
population · housing_unitsintegerCensus figures, where joined

Exposed atLocalitiesZoning overviewIdentifiersAPI

zoning_ordinance_content

142,126 rows · one retrieved chapter each

The full text. Each chapter of an adopted code is retrieved from its host, OCR’d, and structured into markdown; both forms are kept. A stored search_tsv tsvector with a GIN index over that text is what answers full-text search, and structured_markdown is what the chapter pages render — with extracted standards highlighted in place.

ColumnTypeMeaning
content_idbigintPrimary key, used in every /chapters URL
locality_idbigint→ zoning_locality
source · source_url · document_urltextWhich host the chapter came from, and where
chapter · document_titletextThe chapter heading as published
ocr_texttextRaw OCR output
structured_markdowntextThe same text, structured — headings, tables, emphasis
search_tsvtsvectorGenerated english tsvector over the text, GIN-indexed — what answers full-text search
char_countintegerGenerated column over the OCR text; chapters average 67 KB, the largest is 3 MB
statustextpending → ocr_done → markdown_done → rules_extracted

Exposed atChaptersText searchAPI

zoning_ordinance_rules

1,226,181 rows · one extracted rule each

The heart of the database. A rule with a zone_code is a district — R-1, B-2 — with the ordinance’s dimensional standards for that zone across roughly fifty typed columns. A rule with rule_scope = ‘general’ is a citywide provision: most of a code’s volume. Every rule keeps the section and excerpt it was read from. A district is keyed by its zrid, <locality>.<code>, which every passage stating it shares; rule_id only names the row, and changes when an ordinance is re-read.

ColumnTypeMeaning
rule_idbigintRow key, assigned on insert and reassigned whenever an ordinance is re-read: link a district by its zrid
zridtextThe district key: locality key, a dot, the zone code percent-encoded (5144984.R-1), the zoningcode.link path. Shared by every passage stating the district; NULL for a general provision
zoningurltextThe district's short link, https://zoningcode.link/<zrid>
content_id · locality_idbigint→ the chapter it was read from, and the jurisdiction
rule_scopetextdistrict · general · overlay
zone_code · zone_name · zone_categorytextThe district identity; category drives the site-wide legend
min_lot_area_sqft … max_farnumeric ×50Dimensional standards: lot, density, setbacks, height, bulk, parking
permitted/conditional/accessory/prohibited_usestext[]The use lists, as the ordinance names them
sf/mf2/mf3/mf4plus_treatmenttextHow 1–4+ family housing is treated: by_right · conditional · prohibited
adu_allowedbooleanAccessory dwelling units; NULL = the ordinance does not say
source_section · source_excerpttextThe citation: where in the code this was read, and its language
confidence · needs_reviewreal · booleanExtractor self-assessment, surfaced on the page when flagged

Exposed atDistrict pagesDistrict searchAPI

Example response

GET /api/districts/5157000.HC-G1 for HC-G1, Ghent Historic and Cultural Conservation, in Norfolk, VA. A district is addressed by its zrid, the same key its short link uses, and comes back with every passage that states it (1 here), each row hydrated with the 39 standards extracted from it. It is read live from the database, so the values are exactly what was read from the ordinance, including the source's own spelling.

{
  "zrid": "5157000.HC-G1",
  "zoningurl": "https://zoningcode.link/5157000.HC-G1",
  "zone_code": "HC-G1",
  "zone_name": "Ghent Historic and Cultural Conservation",
  "zone_category": "residential",
  "locality_id": 16015,
  "locality_geoid": "5157000",
  "locality_key": "5157000",
  "locality_name": "Norfolk",
  "state_abbr": "VA",
  "rules": [
    {
      "rule_id": 1254097,
      "zrid": "5157000.HC-G1",
      "zoningurl": "https://zoningcode.link/5157000.HC-G1",
      "zone_code": "HC-G1",
      "zone_name": "Ghent Historic and Cultural Conservation",
      "zone_category": "residential",
      "zone_subcategory": "traditional_character",
      "rule_scope": "district",
      "locality_id": 16015,
      "locality_geoid": "5157000",
      "locality_name": "Norfolk",
      "state_abbr": "VA",
      "county_name": null,
      "ordinance_url": "https://www.norfolk.gov/DocumentCenter/View/35581",
      "permitted_uses": [
        "Conservation and Oen Sace Uses",
        "Park",
        "Household Living U",
        "Government office",
        "Home occupation",
        "Construction-related office/yard",
        "Temporary Uses and",
        "Structures",
        "Outdoor display and storage",
        "Public event on private property",
        "Seasonal decorations display and sales",
        "Temporary health care structure",
        "single-family dwelling",
        "two-family dwelling",
        "townhouse dwelling",
        "multifamily dwelling"
      ],
      "conditional_uses": [
        "Vehicle Sales and Service Uses (visitor)",
        "Vehicle Sales and Service Uses (accommodation)",
        "Short-term rental unit (homestay)",
        "secondary school"
      ],
      "accessory_uses": [
        "accessory structure"
      ],
      "prohibited_uses": [
        "restaurant",
        "country club",
        "health and fitness facility",
        "marina",
        "artist studio/school/gallery",
        "bank or other financial institution",
        "convenience store",
        "music, dance, or martial arts studio/school",
        "office",
        "all other unlisted uses"
      ],
      "parking_requirements": {
        "residential": "1 space per dwelling unit"
      },
      "use_details": null,
      "source_section": "Article 3, Sec. 3.6.5; Article 5, Sec. 5.11 and Table 5.11.3; Article 5, Sec. 5.1; Modification purpose provision; Deviation from Height Requirements",
      "source_excerpt": "Allowed uses are primarily residential in order to ensure new structures are compatible with district character.",
      "confidence": 0.94,
      "needs_review": false,
      "audit_flags": [],
      "content_id": 23573,
      "document_url": "https://www.norfolk.gov/DocumentCenter/View/35581",
      "source_url": "https://www.norfolk.gov/DocumentCenter/View/35581",
      "chapter": "Norfolk",
      "updated_at": "2026-10-04T22:51:31.505Z",
      "min_lot_area_sqft": 2500,
      "min_lot_width_ft": 25,
      "min_lot_frontage_ft": null,
      "min_lot_depth_ft": null,
      "min_floor_area_sqft": null,
      "max_density_du_per_acre": null,
      "min_density_du_per_acre": null,
      "min_lot_area_per_du_sqft": null,
      "max_units": null,
      "front_setback_ft": 17,
      "rear_setback_ft": 3,
      "side_setback_ft": 3,
      "street_side_setback_ft": 5,
      "side_setback_total_ft": null,
      "build_to_line_ft": null,
      "min_accessory_setback_ft": 3,
      "max_height_ft": 25,
      "max_height_stories": null,
      "height_measured_from": null,
      "max_far": null,
      "max_lot_coverage_pct": 55,
      "max_impervious_coverage_pct": null,
      "min_open_space_pct": null,
      "min_landscaped_pct": null,
      "step_back_ft": null,
      "max_accessory_height_ft": 25,
      "adu_allowed": null,
      "sf_treatment": "by_right",
      "mf2_treatment": "by_right",
      "mf3_treatment": "by_right",
      "mf4plus_treatment": "by_right",
      "density_bonus_pct": null,
      "inclusionary_pct": null,
      "elderly_only": null,
      "min_parking_spaces": 1,
      "min_parking_0br_1br": null,
      "min_parking_2plus_br": null,
      "min_transparency_pct": null,
      "max_block_length_ft": null,
      "max_sign_area_sqft": null,
      "max_sign_height_ft": null,
      "max_fence_height_ft": null,
      "requires_screening": null,
      "min_screening_height_ft": null,
      "min_distance_from_residential_ft": null,
      "min_building_separation_ft": 3,
      "nonconforming_abandonment_months": null,
      "slope_regulated": null,
      "min_slope_pct_trigger": null,
      "max_buildable_slope_pct": null,
      "slope_density_applies": null,
      "steep_slope_overlay": null,
      "max_graded_slope_ratio": null,
      "max_grading_cut_cy": null,
      "max_grading_fill_cy": null,
      "floodplain_regulated": null,
      "wildfire_regulated": null,
      "wetland_riparian_buffer_ft": null,
      "requires_sewer_water": null,
      "requires_transit": null,
      "applies_near": "Ghent",
      "applies_within_ft": null,
      "geographic_description": "Ghent neighborhood",
      "standards": [
        {
          "standard_id": 7570968,
          "category": "height",
          "standard_key": "max_accessory_height_ft",
          "label": "Maximum accessory building height",
          "numeric_value": 25,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "|Accessory Building Height, max. (ft.)|||25|||",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570967,
          "category": "height",
          "standard_key": "max_height_ft",
          "label": "Building height range",
          "numeric_value": 25,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "|Building Height (ft.)|||25-35|||",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570981,
          "category": "height",
          "standard_key": "max_height_ft",
          "label": "Approval required to exceed height requirements",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "In the HC-G1, HC-G2, HC-G3, HC-WF1, and HC-WF2 districts, height requirements may be exceeded after first receiving approval of a Certificate of Appropriateness, and then approval of a Conditional Use Permit in accordance with Section 2.4.8, Conditional Use Permit.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570977,
          "category": "other",
          "standard_key": "accessory_structure_exterior_stairways_prohibited",
          "label": "Exterior stairways on accessory structures prohibited",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "Exterior stairways on an accessory structure are prohibited.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570975,
          "category": "other",
          "standard_key": "accessory_structure_parking_access_prohibition",
          "label": "Accessory structures may not impede parking access",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "No accessory structure shall impede the access to or function of a parking lot (off-street parking area).",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570976,
          "category": "other",
          "standard_key": "accessory_structure_plumbing_fixture_limit",
          "label": "Accessory structure plumbing fixture limit",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "Plumbing fixtures, except one toilet and one sink, are prohibited in an accessory structure, unless as part of an accessory dwelling unit in accordance with Section 4.3.3.E(1)(a), Accessory Dwelling Unit.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570963,
          "category": "other",
          "standard_key": "front_setback_block_average_offset_ft",
          "label": "Maximum deviation from block-face average front yard",
          "numeric_value": 1.5,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "If at least 25 percent of the block face has a front yard depth that is less than the standard, the minimum front yard setback shall be within 1.5 feet of the block face average.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570962,
          "category": "other",
          "standard_key": "front_setback_ft",
          "label": "Front yard setback range",
          "numeric_value": 17,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "|Front Yard Setback (ft.)|||17-20 [2]|||",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570970,
          "category": "other",
          "standard_key": "front_setback_ft",
          "label": "Accessory structure front yard setback",
          "numeric_value": 17,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "Front Yard Setback, min. (ft.) Same as principal use [2]",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570969,
          "category": "other",
          "standard_key": "max_lot_coverage_pct",
          "label": "Maximum accessory structure lot coverage",
          "numeric_value": 20,
          "numeric_value_max": null,
          "unit": "pct",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "Lot coverage, max. (%) 20 [1]",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570978,
          "category": "other",
          "standard_key": "max_setback_reduction_pct",
          "label": "Maximum administrative setback reduction",
          "numeric_value": 30,
          "numeric_value_max": null,
          "unit": "pct",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "A Modification may be requested and granted for reductions in a building setback by up to 30 percent.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570957,
          "category": "other",
          "standard_key": "min_lot_area_per_du_sqft",
          "label": "Multifamily lot area per dwelling unit",
          "numeric_value": 1650,
          "numeric_value_max": null,
          "unit": "sqft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "This standard applies per dwelling unit.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570953,
          "category": "other",
          "standard_key": "min_lot_area_sqft",
          "label": "Two-family minimum lot area",
          "numeric_value": 3750,
          "numeric_value_max": null,
          "unit": "sqft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "|Lot Area, min. (sf.)|2,500|3,750|1,800|1,650 [1]|10,000|",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570955,
          "category": "other",
          "standard_key": "min_lot_area_sqft",
          "label": "Townhouse minimum lot area",
          "numeric_value": 1800,
          "numeric_value_max": null,
          "unit": "sqft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "|Lot Area, min. (sf.)|2,500|3,750|1,800|1,650 [1]|10,000|",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570958,
          "category": "other",
          "standard_key": "min_lot_area_sqft",
          "label": "Minimum total multifamily lot area",
          "numeric_value": 5000,
          "numeric_value_max": null,
          "unit": "sqft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "The total lot area must not be less than 5,000 square feet.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570960,
          "category": "other",
          "standard_key": "min_lot_area_sqft",
          "label": "Minimum lot area for all other uses",
          "numeric_value": 10000,
          "numeric_value_max": null,
          "unit": "sqft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "|Lot Area, min. (sf.)|2,500|3,750|1,800|1,650 [1]|10,000|",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570954,
          "category": "other",
          "standard_key": "min_lot_width_ft",
          "label": "Two-family minimum lot width",
          "numeric_value": 37.5,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "|Lot Width, min. (ft.)|25|37.5|18|50|100|",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570956,
          "category": "other",
          "standard_key": "min_lot_width_ft",
          "label": "Townhouse minimum lot width",
          "numeric_value": 18,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "|Lot Width, min. (ft.)|25|37.5|18|50|100|",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570959,
          "category": "other",
          "standard_key": "min_lot_width_ft",
          "label": "Multifamily minimum lot width",
          "numeric_value": 50,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "|Lot Width, min. (ft.)|25|37.5|18|50|100|",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570961,
          "category": "other",
          "standard_key": "min_lot_width_ft",
          "label": "Minimum lot width for all other uses",
          "numeric_value": 100,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "|Lot Width, min. (ft.)|25|37.5|18|50|100|",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570966,
          "category": "other",
          "standard_key": "rear_setback_ft",
          "label": "Rear setback common-wall exception",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "Does not apply to structures sharing common walls at lot lines where there is no space between buildings.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570973,
          "category": "other",
          "standard_key": "rear_setback_ft",
          "label": "Accessory structure rear yard setback",
          "numeric_value": 3,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "Rear Yard Setback, min. (ft.) 3 [3] [4]",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570974,
          "category": "other",
          "standard_key": "rear_setback_ft",
          "label": "Accessory structure rear setback adjacent to street",
          "numeric_value": 5,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "Rear Yard Setback (adjacent to street), min. (ft.) Same as the corner side yard setback as required by the district",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570965,
          "category": "other",
          "standard_key": "side_setback_ft",
          "label": "Side setback common-wall exception",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "Does not apply to structures sharing common walls at lot lines where there is no space between buildings.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570971,
          "category": "other",
          "standard_key": "side_setback_ft",
          "label": "Accessory structure side yard setback",
          "numeric_value": 3,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "Side Yard Setback, min. (ft.) 3, or the side yard setback as required by the district if the majority of the building is outside",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570964,
          "category": "other",
          "standard_key": "street_side_setback_ft",
          "label": "Corner-side setback on narrow lots",
          "numeric_value": 3,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "If the lot is less than 30 feet wide, the setback is 3 feet.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570972,
          "category": "other",
          "standard_key": "street_side_setback_ft",
          "label": "Accessory structure corner-side setback",
          "numeric_value": 5,
          "numeric_value_max": null,
          "unit": "ft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "Corner Side Yard Setback, min. (ft.) Same as principal use, accessory structures not permitted in setback",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570980,
          "category": "parking",
          "standard_key": "max_parking_spaces_per_du",
          "label": "Maximum parking per dwelling unit",
          "numeric_value": 1,
          "numeric_value_max": null,
          "unit": "spaces/du",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "The maximum number of parking spaces permitted shall be 1 space per dwelling unit.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 7570979,
          "category": "parking",
          "standard_key": "min_parking_spaces",
          "label": "Minimum residential parking",
          "numeric_value": 1,
          "numeric_value_max": null,
          "unit": "spaces/du",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "In the HC-G1, HC-G2, and HC-G3 districts, 1 parking space per dwelling unit shall be required.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 12924953,
          "category": "use",
          "standard_key": "tiny_home.care_cottage",
          "label": "Temporary health care structure",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": null,
          "enum_value": "by_right",
          "raw_text": "Temporary health care structure: P",
          "source_section": "TABLE 3.6.11: PRINCIPAL, ACCESSORY, AND TEMPORARY USE TABLE FOR HISTORIC AND CULTURAL CONSERVATION BASE ZONING DISTRICTS",
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 12924956,
          "category": "use",
          "standard_key": "tiny_home.care_cottage_max_sqft",
          "label": "Largest temporary health care structure",
          "numeric_value": 300,
          "numeric_value_max": null,
          "unit": "sqft",
          "bool_value": null,
          "text_value": null,
          "enum_value": null,
          "raw_text": "A transportable residential structure, providing an environment facilitating a caregiver's provision of care for a mentally or physically impaired persons, that is primarily assembled at a location other than its site of installation, is limited to one occupant who shall be the mentally or physically impaired person, that has no more than 300 gross square feet",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 12924957,
          "category": "use",
          "standard_key": "tiny_home.constraint",
          "label": "Other constraint on small dwellings",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": "Accessory structure height max 14 ft for residential use; lot coverage max 20%; front yard setback same as principal use; rear yard setback min 3 ft (5 ft adjacent to alley wider than 20 ft)",
          "enum_value": null,
          "raw_text": "Accessory to residential use | 14",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 12924958,
          "category": "use",
          "standard_key": "tiny_home.constraint",
          "label": "Other constraint on small dwellings",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": "Plumbing fixtures, except one toilet and one sink, prohibited in an accessory structure unless as part of an ADU",
          "enum_value": null,
          "raw_text": "Plumbing fixtures, except one toilet and one sink, are prohibited in an accessory structure, unless as part of an accessory dwelling unit",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 12924959,
          "category": "use",
          "standard_key": "tiny_home.constraint",
          "label": "Other constraint on small dwellings",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": "Exterior stairways on an accessory structure are prohibited",
          "enum_value": null,
          "raw_text": "Exterior stairways on an accessory structure are prohibited.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 12924960,
          "category": "use",
          "standard_key": "tiny_home.constraint",
          "label": "Other constraint on small dwellings",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": "Temporary use of an accessory structure as a principal dwelling after a declared disaster is permitted",
          "enum_value": null,
          "raw_text": "The accessory structure shall be used only as a dwelling in times of declared disaster",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 12924961,
          "category": "use",
          "standard_key": "tiny_home.constraint",
          "label": "Other constraint on small dwellings",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": "Dwelling unit defined as one or more rooms with independent cooking, bathroom, and sleeping facilities; recreational vehicles are not dwelling units",
          "enum_value": null,
          "raw_text": "One or more rooms connected together and constituting a single housekeeping unit",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 12924955,
          "category": "use",
          "standard_key": "tiny_home.manufactured_counts_as_single_family",
          "label": "Manufactured home counts as single-family",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": false,
          "text_value": "Manufactured homes are expressly excluded from the single-family detached dwelling definition; they are a separate dwelling type built on a permanent foundation",
          "enum_value": null,
          "raw_text": "Manufactured homes, mobile homes, travel trailers, housing mounted on self-propelled or drawn vehicles, tents, or other forms of temporary housing or portable housing do not constitute a single-family detached dwelling.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 12924954,
          "category": "use",
          "standard_key": "tiny_home.on_wheels",
          "label": "Tiny house on wheels lived in",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": "Recreational vehicles are not dwelling units; housing mounted on self-propelled or drawn vehicles does not constitute a single-family detached dwelling",
          "enum_value": "no",
          "raw_text": "Recreational vehicles are not dwelling units.",
          "source_section": null,
          "confidence": null,
          "needs_review": false
        },
        {
          "standard_id": 12924952,
          "category": "use",
          "standard_key": "tiny_home.own_lot",
          "label": "Tiny home on its own lot",
          "numeric_value": null,
          "numeric_value_max": null,
          "unit": null,
          "bool_value": null,
          "text_value": null,
          "enum_value": "by_right",
          "raw_text": "Dwelling, single-family detached: P",
          "source_section": "TABLE 3.6.11: PRINCIPAL, ACCESSORY, AND TEMPORARY USE TABLE FOR HISTORIC AND CULTURAL CONSERVATION BASE ZONING DISTRICTS",
          "confidence": null,
          "needs_review": false
        }
      ]
    }
  ]
}

HC-G1 district page

zoning_ordinance_standard

11,310,962 rows · one discrete requirement each

Requirements lifted out of the prose, one per row — a maximum sign area, a fence setback, a riparian buffer — each typed by value_kind and each with raw_text, the sentence it was read from. That sentence is what the chapter pages locate and highlight.

ColumnTypeMeaning
standard_idbigintPrimary key; the #standard-N anchors on chapter pages
rule_id · content_id · locality_idbigint→ the rule, chapter and jurisdiction it belongs to
categorytextOne of 28 checked values — signage, parking, height, floodplain…
standard_key · labeltextMachine-generated key and human label
numeric_value · numeric_value_max · unitnumeric · textThe value, or a range, with its unit
bool_value · text_value · enum_valuevariousNon-numeric values, per value_kind
raw_texttextThe exact sentence the requirement was read from
applies_whenjsonbConditions scoping the requirement, where stated

Exposed atStandardsAPI

zoning_standard_def

3,322,844 rows · one standard key each

The vocabulary of standard_keys with default units and value kinds. Machine-generated and definition-free — which is why the site’s glossary is authored rather than derived from it.

ColumnTypeMeaning
standard_keytextPrimary key
category · label · default_unittextGrouping, display label, unit
value_kindtextnumeric · range · boolean · text · enum

state_zoning_statute

50 rows · one state enabling act each

The state law behind every local ordinance: the authority model (who may zone), the primary citation, the delegating text and a plain summary, with a verification flag.

ColumnTypeMeaning
state_abbr · state_nametextOne row per state
authority_modeltextcounty_and_municipal · municipal_delegation · state_level, with local nuance
primary_citation · statute_title · source_urltextThe citation and where to read it
statute_text · summarytextThe delegating language and a plain-English summary
verified · confidenceboolean · textWhether the record was checked against the source

Exposed atStatutesAPI

zoning_ordinance_source

64,113 rows · one candidate source each

Discovery bookkeeping: every candidate URL found while hunting for a jurisdiction’s adopted code, with its kind and status. Feeds the pipeline; not exposed on the site directly.

ColumnTypeMeaning
locality_idbigint→ zoning_locality
source · url · kind · titletextWhere a code might live, and what kind of host it is
statustextWhether the candidate panned out

Database notes

NULL means silence, not no. Every extracted column distinguishes what the ordinance does not say from what it forbids — adu_allowed is NULL where the code never addresses it, and the site renders that as “not stated” throughout.

In the registry ≠ read. A locality row exists as soon as a jurisdiction is identified; only districts extracted from its chapters make it searchable. And a locality with rules is not necessarily one with districts — a retrieved subdivision chapter yields general provisions and nothing else.

Numerics travel as strings. Postgres numeric preserves precision, so the JSON API returns dimensional values as strings — parse them, don’t assume numbers.

Derived tables sit beside these. site_aggregate caches the counts every page quotes; state_zoning_snapshot and zoning_score hold the per-state snapshot and the buildability and restrictiveness scores. All three are computed from the tables above rather than copied from the warehouse, and are rebuilt wholesale — nothing reads them as a source of truth. The scoring method documents what goes into the last one.

The read-only grants the site runs under are documented in .env.example; the optional text-search migration ships as sql/search_index.sql and belongs to the pipeline, not the site.