{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/epa/refs/heads/main/json-schema/echo-cwa-cwa02-schema.json",
  "title": "cwa02",
  "description": "Map Data Object",
  "type": "object",
  "properties": {
    "CWAstatus": {
      "description": "Quarterly compliance status for the most recent 13 quarters. Each letter indicates the compliance status for the corresponding quarter.",
      "example": "VV_______V_VV",
      "type": "string"
    },
    "FormalCount": {
      "description": "The number of formal enforcement actions that have been taken against the facility",
      "example": "1",
      "title": "Formal Count",
      "type": "string"
    },
    "ICON": {
      "description": "Name of each individual icon file within the URL base",
      "example": "CAA-IC-MN-N.png",
      "title": "Icon",
      "type": "string"
    },
    "InformalCount": {
      "description": "The number of informal enforcement actions that have been taken against the facility",
      "example": "1",
      "title": "Informal Count",
      "type": "string"
    },
    "LAT": {
      "description": "The latitude of the facility in degrees, to four decimal places",
      "example": "38.798026",
      "title": "Latitude",
      "type": "string"
    },
    "LON": {
      "description": "The longitude of the facility in degrees, to four decimal places",
      "example": "-77.062981",
      "title": "Longitude",
      "type": "string"
    },
    "LastInsp": {
      "description": "The unique identifier for the last inspection",
      "example": "901",
      "title": "Last Inspection",
      "type": "string"
    },
    "NAME": {
      "description": "For DFR, this is the Facility name. The name corresponds to the TYPE value",
      "example": "VIRGINIA CONCRETE ALEXANDRIA PLANT",
      "title": "Name",
      "type": "string"
    },
    "PUV": {
      "description": "Pop up value. Combine with PopUpBaseURL to give the popup for the facility",
      "example": "110001891506",
      "title": "Popup Value",
      "type": "string"
    },
    "TYPE": {
      "description": "For DFR, this is always facility",
      "example": "Facility",
      "title": "Type",
      "type": "string"
    }
  },
  "required": [
    "LAT",
    "LON",
    "ICON",
    "TYPE",
    "NAME",
    "PUV",
    "CWAstatus",
    "LastInsp",
    "FormalCount",
    "InformalCount"
  ]
}