{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eckari-com/json-schema/eckari-com-location-us-geographies-output-schema.json",
  "title": "location_us_geographies_output",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eckari-com-location-api-openapi.yml#/components/schemas/location_us_geographies_output",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "query",
    "state",
    "county",
    "tract",
    "block_group",
    "block",
    "place",
    "congressional_district",
    "zcta",
    "vintage",
    "benchmark"
  ],
  "properties": {
    "query": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "lat",
        "lon"
      ],
      "description": "The point that was looked up, echoed so a batched caller can match answers to requests.",
      "properties": {
        "lat": {
          "type": "number",
          "description": "The latitude that was looked up."
        },
        "lon": {
          "type": "number",
          "description": "The longitude that was looked up."
        }
      }
    },
    "state": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "fips",
        "name",
        "usps"
      ],
      "description": "US state, district or territory containing the point.",
      "properties": {
        "fips": {
          "type": [
            "string",
            "null"
          ],
          "description": "Two-digit state FIPS code (e.g. 11 for the District of Columbia)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "State, district or territory name."
        },
        "usps": {
          "type": [
            "string",
            "null"
          ],
          "description": "Two-letter USPS state abbreviation as published by the Census Bureau."
        }
      }
    },
    "county": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "fips",
        "name"
      ],
      "description": "County or county equivalent containing the point; null when the Census Bureau returns no county layer.",
      "properties": {
        "fips": {
          "type": [
            "string",
            "null"
          ],
          "description": "Five-digit county FIPS code (state FIPS + county code)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "County or county-equivalent name."
        }
      }
    },
    "tract": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "geoid",
        "name"
      ],
      "description": "Census tract containing the point; null when the Census Bureau returns no tract layer.",
      "properties": {
        "geoid": {
          "type": [
            "string",
            "null"
          ],
          "description": "11-character census tract GEOID (state + county + tract)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Census tract name as published (e.g. Census Tract 9800)."
        }
      }
    },
    "block_group": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "geoid"
      ],
      "description": "Census block group containing the point, or null.",
      "properties": {
        "geoid": {
          "type": [
            "string",
            "null"
          ],
          "description": "12-character block group GEOID."
        }
      }
    },
    "block": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "geoid"
      ],
      "description": "Census block containing the point (decennial census block layer), or null.",
      "properties": {
        "geoid": {
          "type": [
            "string",
            "null"
          ],
          "description": "15-character census block GEOID."
        }
      }
    },
    "place": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "geoid",
        "name"
      ],
      "description": "Incorporated place containing the point, or null when the point is unincorporated.",
      "properties": {
        "geoid": {
          "type": [
            "string",
            "null"
          ],
          "description": "Seven-character place GEOID (state FIPS + place code)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Place name as published (e.g. Washington city)."
        }
      }
    },
    "congressional_district": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "geoid",
        "name"
      ],
      "description": "Congressional district for the current session containing the point, or null.",
      "properties": {
        "geoid": {
          "type": [
            "string",
            "null"
          ],
          "description": "Four-character congressional district GEOID (state FIPS + district number)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "District name as published by the Census Bureau."
        }
      }
    },
    "zcta": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "geoid"
      ],
      "description": "ZIP Code Tabulation Area containing the point, or null. A ZCTA is a Census statistical approximation of a ZIP code built from census blocks — it is NOT a USPS delivery ZIP code. ZCTAs and ZIPs are not one-to-one: some ZIPs have no ZCTA, boundaries do not match carrier routes, and PO-Box-only ZIPs have no area. Never present a ZCTA as USPS-validated.",
      "properties": {
        "geoid": {
          "type": [
            "string",
            "null"
          ],
          "description": "Five-digit ZCTA code (ZCTA5)."
        }
      }
    },
    "vintage": {
      "type": [
        "string",
        "null"
      ],
      "description": "Census geography vintage used for the lookup (Current_Current), echoed by the Census Bureau. Named identically in location.us.geocode."
    },
    "benchmark": {
      "type": [
        "string",
        "null"
      ],
      "description": "Census Bureau address-range benchmark used for the lookup (Public_AR_Current)."
    }
  }
}