{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-maps/json-schema/google-maps-building-insights-schema.json",
  "title": "BuildingInsights",
  "description": "Response message for `Solar.FindClosestBuildingInsights`. Information about the location, dimensions, and solar potential of a building.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-maps-solar-building-insights-api-openapi.yml#/components/schemas/BuildingInsights",
  "properties": {
    "imageryProcessedDate": {
      "$ref": "#/$defs/Date",
      "description": "When processing was completed on this imagery."
    },
    "imageryQuality": {
      "description": "The quality of the imagery used to compute the data for this building.",
      "type": "string",
      "enum": [
        "IMAGERY_QUALITY_UNSPECIFIED",
        "HIGH",
        "MEDIUM",
        "LOW",
        "BASE"
      ]
    },
    "detectedArrays": {
      "$ref": "#/$defs/BuildingInsightsDetectedArrays",
      "description": "Solar arrays detected on the building. This field is only populated if DETECTED_ARRAYS is included in the request's FindClosestBuildingInsightsRequest.additional_insights."
    },
    "name": {
      "type": "string",
      "description": "The resource name for the building, of the format `buildings/{place_id}`."
    },
    "postalCode": {
      "type": "string",
      "description": "Postal code (e.g., US zip code) this building is contained by."
    },
    "administrativeArea": {
      "type": "string",
      "description": "Administrative area 1 (e.g., in the US, the state) that contains this building. For example, in the US, the abbreviation might be \"MA\" or \"CA.\""
    },
    "imageryDate": {
      "$ref": "#/$defs/Date",
      "description": "Date that the underlying imagery was acquired. This is approximate."
    },
    "solarPotential": {
      "$ref": "#/$defs/SolarPotential",
      "description": "Solar potential of the building."
    },
    "statisticalArea": {
      "type": "string",
      "description": "Statistical area (e.g., US census tract) this building is in."
    },
    "regionCode": {
      "type": "string",
      "description": "Region code for the country (or region) this building is in."
    },
    "boundingBox": {
      "$ref": "#/$defs/LatLngBox",
      "description": "The bounding box of the building."
    },
    "center": {
      "$ref": "#/$defs/LatLng",
      "description": "A point near the center of the building."
    }
  },
  "type": "object",
  "$defs": {
    "BuildingInsightsDetectedArrays": {
      "description": "Information about solar arrays detected on the building.",
      "type": "object",
      "properties": {
        "latestCaptureDate": {
          "$ref": "#/$defs/Date",
          "description": "The date indicating when the latest solar array data was captured."
        },
        "detectionStatus": {
          "description": "Indicates the detection status of solar arrays for this building.",
          "type": "string",
          "enum": [
            "DETECTION_STATUS_UNSPECIFIED",
            "DETECTION_STATUS_DATA_UNAVAILABLE",
            "DETECTION_STATUS_ARRAYS_DETECTED",
            "DETECTION_STATUS_NO_ARRAYS_DETECTED"
          ]
        },
        "arrays": {
          "description": "A list of solar arrays detected on the building.",
          "items": {
            "$ref": "#/$defs/BuildingInsightsDetectedArraysSolarArray"
          },
          "type": "array"
        }
      }
    },
    "BuildingInsightsDetectedArraysSolarArray": {
      "description": "Details of a single detected solar array.",
      "type": "object",
      "properties": {
        "polygonGeojson": {
          "description": "A GeoJSON representation of the building area where solar panels were detected. The GeoJSON data must be in RFC 7946 format and represent a Polygon for a single contiguous area. The Polygon will be represented by several loops when it contains holes. Example: { \"type\": \"Polygon\", \"coordinates\": [ [ [-1, -1], [-1, 0], [0, 0], [-1, -1] ] ] }",
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          }
        }
      }
    },
    "CashPurchaseSavings": {
      "properties": {
        "outOfPocketCost": {
          "$ref": "#/$defs/Money",
          "description": "Initial cost before tax incentives: the amount that must be paid out-of-pocket. Contrast with `upfront_cost`, which is after tax incentives."
        },
        "rebateValue": {
          "$ref": "#/$defs/Money",
          "description": "The value of all tax rebates."
        },
        "upfrontCost": {
          "$ref": "#/$defs/Money",
          "description": "Initial cost after tax incentives: it's the amount that must be paid during first year. Contrast with `out_of_pocket_cost`, which is before tax incentives."
        },
        "paybackYears": {
          "type": "number",
          "format": "float",
          "description": "Number of years until payback occurs. A negative value means payback never occurs within the lifetime period."
        },
        "savings": {
          "$ref": "#/$defs/SavingsOverTime",
          "description": "How much is saved (or not) over the lifetime period."
        }
      },
      "description": "Cost and benefit of an outright purchase of a particular configuration of solar panels with a particular electricity usage.",
      "type": "object"
    },
    "Date": {
      "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
      "type": "object",
      "properties": {
        "month": {
          "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
          "type": "integer",
          "format": "int32"
        },
        "day": {
          "type": "integer",
          "format": "int32",
          "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant."
        },
        "year": {
          "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "FinancedPurchaseSavings": {
      "properties": {
        "annualLoanPayment": {
          "$ref": "#/$defs/Money",
          "description": "Annual loan payments."
        },
        "loanInterestRate": {
          "type": "number",
          "description": "The interest rate on loans assumed in this set of calculations.",
          "format": "float"
        },
        "savings": {
          "$ref": "#/$defs/SavingsOverTime",
          "description": "How much is saved (or not) over the lifetime period."
        },
        "rebateValue": {
          "$ref": "#/$defs/Money",
          "description": "The value of all tax rebates (including Federal Investment Tax Credit (ITC))."
        }
      },
      "description": "Cost and benefit of using a loan to buy a particular configuration of solar panels with a particular electricity usage.",
      "type": "object"
    },
    "FinancialAnalysis": {
      "description": "Analysis of the cost and benefits of the optimum solar layout for a particular electric bill size.",
      "type": "object",
      "properties": {
        "monthlyBill": {
          "$ref": "#/$defs/Money",
          "description": "The monthly electric bill this analysis assumes."
        },
        "averageKwhPerMonth": {
          "format": "float",
          "description": "How much electricity the house uses in an average month, based on the bill size and the local electricity rates.",
          "type": "number"
        },
        "financedPurchaseSavings": {
          "$ref": "#/$defs/FinancedPurchaseSavings",
          "description": "Cost and benefit of buying the solar panels by financing the purchase."
        },
        "defaultBill": {
          "type": "boolean",
          "description": "Whether this is the bill size selected to be the default bill for the area this building is in. Exactly one `FinancialAnalysis` in `BuildingSolarPotential` should have `default_bill` set."
        },
        "financialDetails": {
          "$ref": "#/$defs/FinancialDetails",
          "description": "Financial information that applies regardless of the financing method used."
        },
        "cashPurchaseSavings": {
          "$ref": "#/$defs/CashPurchaseSavings",
          "description": "Cost and benefit of buying the solar panels with cash."
        },
        "leasingSavings": {
          "$ref": "#/$defs/LeasingSavings",
          "description": "Cost and benefit of leasing the solar panels."
        },
        "panelConfigIndex": {
          "description": "Index in solar_panel_configs of the optimum solar layout for this bill size. This can be -1 indicating that there is no layout. In this case, the remaining submessages will be omitted.",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "FinancialDetails": {
      "properties": {
        "costOfElectricityWithoutSolar": {
          "$ref": "#/$defs/Money",
          "description": "Total cost of electricity the user would have paid over the lifetime period if they didn't install solar."
        },
        "netMeteringAllowed": {
          "type": "boolean",
          "description": "Whether net metering is allowed."
        },
        "remainingLifetimeUtilityBill": {
          "$ref": "#/$defs/Money",
          "description": "Utility bill for electricity not produced by solar, for the lifetime of the panels."
        },
        "percentageExportedToGrid": {
          "description": "The percentage (0-100) of solar electricity production we assumed was exported to the grid, based on the first quarter of production. This affects the calculations if net metering is not allowed.",
          "format": "float",
          "type": "number"
        },
        "solarPercentage": {
          "description": "Percentage (0-100) of the user's power supplied by solar. Valid for the first year but approximately correct for future years.",
          "type": "number",
          "format": "float"
        },
        "utilityIncentive": {
          "$ref": "#/$defs/Money",
          "description": "Amount of money available from utility incentives; this applies if the user buys (with or without a loan) the panels."
        },
        "lifetimeSrecTotal": {
          "$ref": "#/$defs/Money",
          "description": "Amount of money the user will receive from Solar Renewable Energy Credits over the panel lifetime; this applies if the user buys (with or without a loan) the panels."
        },
        "stateIncentive": {
          "$ref": "#/$defs/Money",
          "description": "Amount of money available from state incentives; this applies if the user buys (with or without a loan) the panels."
        },
        "initialAcKwhPerYear": {
          "description": "How many AC kWh we think the solar panels will generate in their first year.",
          "type": "number",
          "format": "float"
        },
        "federalIncentive": {
          "$ref": "#/$defs/Money",
          "description": "Amount of money available from federal incentives; this applies if the user buys (with or without a loan) the panels."
        }
      },
      "description": "Details of a financial analysis. Some of these details are already stored at higher levels (e.g., out of pocket cost). Total money amounts are over a lifetime period defined by the panel_lifetime_years field in SolarPotential. Note: The out of pocket cost of purchasing the panels is given in the out_of_pocket_cost field in CashPurchaseSavings.",
      "type": "object"
    },
    "LatLng": {
      "properties": {
        "latitude": {
          "format": "double",
          "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
          "type": "number"
        },
        "longitude": {
          "type": "number",
          "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
          "format": "double"
        }
      },
      "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.",
      "type": "object"
    },
    "LatLngBox": {
      "type": "object",
      "description": "A bounding box in lat/lng coordinates.",
      "properties": {
        "sw": {
          "$ref": "#/$defs/LatLng",
          "description": "The southwest corner of the box."
        },
        "ne": {
          "$ref": "#/$defs/LatLng",
          "description": "The northeast corner of the box."
        }
      }
    },
    "LeasingSavings": {
      "description": "Cost and benefit of leasing a particular configuration of solar panels with a particular electricity usage.",
      "properties": {
        "leasesAllowed": {
          "type": "boolean",
          "description": "Whether leases are allowed in this juristiction (leases are not allowed in some states). If this field is false, then the values in this message should probably be ignored."
        },
        "savings": {
          "$ref": "#/$defs/SavingsOverTime",
          "description": "How much is saved (or not) over the lifetime period."
        },
        "leasesSupported": {
          "description": "Whether leases are supported in this juristiction by the financial calculation engine. If this field is false, then the values in this message should probably be ignored. This is independent of `leases_allowed`: in some areas leases are allowed, but under conditions that aren't handled by the financial models.",
          "type": "boolean"
        },
        "annualLeasingCost": {
          "$ref": "#/$defs/Money",
          "description": "Estimated annual leasing cost."
        }
      },
      "type": "object"
    },
    "Money": {
      "properties": {
        "units": {
          "type": "string",
          "format": "int64",
          "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar."
        },
        "nanos": {
          "type": "integer",
          "description": "Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.",
          "format": "int32"
        },
        "currencyCode": {
          "type": "string",
          "description": "The three-letter currency code defined in ISO 4217."
        }
      },
      "description": "Represents an amount of money with its currency type.",
      "type": "object"
    },
    "Obstacle": {
      "type": "object",
      "description": "Details of a single detected obstacle.",
      "properties": {
        "polygonGeojson": {
          "type": "object",
          "description": "Output only. A GeoJSON representation of the obstacle. An obstacle is defined as any non-buildable area where solar panels cannot be placed due to physical barriers (vents, chimneys, dormers, etc.). The GeoJSON data must be in RFC 7946 format and represent a Polygon for a single contiguous area. The Polygon will be represented by several loops when it contains holes. Example: { \"type\": \"Polygon\", \"coordinates\": [ [ [-1, -1, 0], [-1, 0, 0], [0, 0, 0], [-1, -1, 0] ] ] }",
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "readOnly": true
        }
      }
    },
    "RoofSegmentSizeAndSunshineStats": {
      "type": "object",
      "properties": {
        "boundingBox": {
          "$ref": "#/$defs/LatLngBox",
          "description": "The bounding box of the roof segment."
        },
        "polygonGeojson": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "description": "Output only. A GeoJSON representation of the detailed geometry for the roof segment plane. The polygon represents the physical roof facet, excluding overlapping vegetation and internal cutouts (e.g., courtyards). This field is only populated if ROOF_GEOMETRY is included in the request's FindClosestBuildingInsightsRequest.additional_insights parameter. The GeoJSON data must be in RFC 7946 format and represent a Polygon for a single contiguous area. The Polygon will be represented by several loops when it contains holes. Example: { \"type\": \"Polygon\", \"coordinates\": [ [ [-1, -1, 0], [-1, 0, 0], [0, 0, 0], [-1, -1, 0] ] ] }",
          "readOnly": true
        },
        "stats": {
          "$ref": "#/$defs/SizeAndSunshineStats",
          "description": "Total size and sunlight quantiles for the roof segment."
        },
        "planeHeightAtCenterMeters": {
          "format": "float",
          "description": "The height of the roof segment plane, in meters above sea level, at the point designated by `center`. Together with the pitch, azimuth, and center location, this fully defines the roof segment plane.",
          "type": "number"
        },
        "pitchDegrees": {
          "type": "number",
          "description": "Angle of the roof segment relative to the theoretical ground plane. 0 = parallel to the ground, 90 = perpendicular to the ground.",
          "format": "float"
        },
        "center": {
          "$ref": "#/$defs/LatLng",
          "description": "A point near the center of the roof segment."
        },
        "azimuthDegrees": {
          "type": "number",
          "format": "float",
          "description": "Compass direction the roof segment is pointing in. 0 = North, 90 = East, 180 = South. For a \"flat\" roof segment (`pitch_degrees` very near 0), azimuth is not well defined, so for consistency, we define it arbitrarily to be 0 (North)."
        }
      },
      "description": "Information about the size and sunniness quantiles of a roof segment."
    },
    "RoofSegmentSummary": {
      "type": "object",
      "description": "Information about a roof segment on the building, with some number of panels placed on it.",
      "properties": {
        "pitchDegrees": {
          "type": "number",
          "format": "float",
          "description": "Angle of the roof segment relative to the theoretical ground plane. 0 = parallel to the ground, 90 = perpendicular to the ground."
        },
        "segmentIndex": {
          "type": "integer",
          "format": "int32",
          "description": "Index in roof_segment_stats of the corresponding `RoofSegmentSizeAndSunshineStats`."
        },
        "panelsCount": {
          "format": "int32",
          "description": "The total number of panels on this segment.",
          "type": "integer"
        },
        "azimuthDegrees": {
          "format": "float",
          "description": "Compass direction the roof segment is pointing in. 0 = North, 90 = East, 180 = South. For a \"flat\" roof segment (`pitch_degrees` very near 0), azimuth is not well defined, so for consistency, we define it arbitrarily to be 0 (North).",
          "type": "number"
        },
        "yearlyEnergyDcKwh": {
          "format": "float",
          "type": "number",
          "description": "How much sunlight energy this part of the layout captures over the course of a year, in DC kWh, assuming the panels described above."
        }
      }
    },
    "SavingsOverTime": {
      "type": "object",
      "description": "Financial information that's shared between different financing methods.",
      "properties": {
        "presentValueOfSavingsYear20": {
          "$ref": "#/$defs/Money",
          "description": "Using the assumed discount rate, what is the present value of the cumulative 20-year savings?"
        },
        "savingsLifetime": {
          "$ref": "#/$defs/Money",
          "description": "Savings in the entire panel lifetime."
        },
        "savingsYear1": {
          "$ref": "#/$defs/Money",
          "description": "Savings in the first year after panel installation."
        },
        "presentValueOfSavingsLifetime": {
          "$ref": "#/$defs/Money",
          "description": "Using the assumed discount rate, what is the present value of the cumulative lifetime savings?"
        },
        "financiallyViable": {
          "description": "Indicates whether this scenario is financially viable. Will be false for scenarios with poor financial viability (e.g., money-losing).",
          "type": "boolean"
        },
        "savingsYear20": {
          "$ref": "#/$defs/Money",
          "description": "Savings in the first twenty years after panel installation."
        }
      }
    },
    "SizeAndSunshineStats": {
      "type": "object",
      "description": "Size and sunniness quantiles of a roof, or part of a roof.",
      "properties": {
        "areaMeters2": {
          "format": "float",
          "type": "number",
          "description": "The area of the roof or roof segment, in m^2. This is the roof area (accounting for tilt), not the ground footprint area."
        },
        "groundAreaMeters2": {
          "description": "The ground footprint area covered by the roof or roof segment, in m^2.",
          "type": "number",
          "format": "float"
        },
        "sunshineQuantiles": {
          "items": {
            "format": "float",
            "type": "number"
          },
          "description": "Quantiles of the pointwise sunniness across the area. If there are N values here, this represents the (N-1)-iles. For example, if there are 5 values, then they would be the quartiles (min, 25%, 50%, 75%, max). Values are in annual kWh/kW like max_sunshine_hours_per_year.",
          "type": "array"
        }
      }
    },
    "SolarPanel": {
      "type": "object",
      "properties": {
        "orientation": {
          "type": "string",
          "enum": [
            "SOLAR_PANEL_ORIENTATION_UNSPECIFIED",
            "LANDSCAPE",
            "PORTRAIT"
          ],
          "description": "The orientation of the panel."
        },
        "yearlyEnergyDcKwh": {
          "description": "How much sunlight energy this layout captures over the course of a year, in DC kWh.",
          "format": "float",
          "type": "number"
        },
        "segmentIndex": {
          "description": "Index in roof_segment_stats of the `RoofSegmentSizeAndSunshineStats` which corresponds to the roof segment that this panel is placed on.",
          "format": "int32",
          "type": "integer"
        },
        "center": {
          "$ref": "#/$defs/LatLng",
          "description": "The centre of the panel."
        }
      },
      "description": "SolarPanel describes the position, orientation, and production of a single solar panel. See the panel_height_meters, panel_width_meters, and panel_capacity_watts fields in SolarPotential for information on the parameters of the panel."
    },
    "SolarPanelConfig": {
      "description": "SolarPanelConfig describes a particular placement of solar panels on the roof.",
      "type": "object",
      "properties": {
        "roofSegmentSummaries": {
          "items": {
            "$ref": "#/$defs/RoofSegmentSummary"
          },
          "description": "Information about the production of each roof segment that is carrying at least one panel in this layout. `roof_segment_summaries[i]` describes the i-th roof segment, including its size, expected production and orientation.",
          "type": "array"
        },
        "panelsCount": {
          "format": "int32",
          "description": "Total number of panels. Note that this is redundant to (the sum of) the corresponding fields in roof_segment_summaries.",
          "type": "integer"
        },
        "yearlyEnergyDcKwh": {
          "description": "How much sunlight energy this layout captures over the course of a year, in DC kWh, assuming the panels described above.",
          "type": "number",
          "format": "float"
        }
      }
    },
    "SolarPotential": {
      "properties": {
        "solarPanelConfigs": {
          "items": {
            "$ref": "#/$defs/SolarPanelConfig"
          },
          "description": "Each SolarPanelConfig describes a different arrangement of solar panels on the roof. They are in order of increasing number of panels. The `SolarPanelConfig` with panels_count=N is based on the first N panels in the `solar_panels` list. This field is only populated if at least 4 panels can fit on a roof.",
          "type": "array"
        },
        "panelWidthMeters": {
          "description": "Width, in meters in portrait orientation, of the panel used in the calculations.",
          "format": "float",
          "type": "number"
        },
        "maxArrayAreaMeters2": {
          "description": "Size, in square meters, of the maximum array.",
          "type": "number",
          "format": "float"
        },
        "solarPanels": {
          "description": "Each SolarPanel describes a single solar panel. They are listed in the order that the panel layout algorithm placed this. This is usually, though not always, in decreasing order of annual energy production.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/SolarPanel"
          }
        },
        "panelHeightMeters": {
          "description": "Height, in meters in portrait orientation, of the panel used in the calculations.",
          "type": "number",
          "format": "float"
        },
        "wholeRoofStats": {
          "$ref": "#/$defs/SizeAndSunshineStats",
          "description": "Total size and sunlight quantiles for the part of the roof that was assigned to some roof segment. Despite the name, this may not include the entire building. See building_stats."
        },
        "financialAnalyses": {
          "description": "A FinancialAnalysis gives the savings from going solar assuming a given monthly bill and a given electricity provider. They are in order of increasing order of monthly bill amount. This field will be empty for buildings in areas for which the Solar API does not have enough information to perform financial computations.",
          "items": {
            "$ref": "#/$defs/FinancialAnalysis"
          },
          "type": "array"
        },
        "carbonOffsetFactorKgPerMwh": {
          "format": "float",
          "type": "number",
          "description": "Equivalent amount of CO2 produced per MWh of grid electricity. This is a measure of the carbon intensity of grid electricity displaced by solar electricity."
        },
        "maxSunshineHoursPerYear": {
          "description": "Maximum number of sunshine hours received per year, by any point on the roof. Sunshine hours are a measure of the total amount of insolation (energy) received per year. 1 sunshine hour = 1 kWh per kW (where kW refers to kW of capacity under Standard Testing Conditions).",
          "type": "number",
          "format": "float"
        },
        "panelCapacityWatts": {
          "type": "number",
          "format": "float",
          "description": "Capacity, in watts, of the panel used in the calculations."
        },
        "panelLifetimeYears": {
          "description": "The expected lifetime, in years, of the solar panels. This is used in the financial calculations.",
          "type": "integer",
          "format": "int32"
        },
        "obstacles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Obstacle"
          },
          "description": "Details for each obstacle detected on the rooftop. An obstacle is defined as any non-buildable area where solar panels cannot be placed due to physical barriers (vents, chimneys, etc.). This field is only populated if ROOF_GEOMETRY is included in the request's FindClosestBuildingInsightsRequest.additional_insights."
        },
        "maxArrayPanelsCount": {
          "format": "int32",
          "type": "integer",
          "description": "Size of the maximum array - that is, the maximum number of panels that can fit on the roof."
        },
        "buildingStats": {
          "$ref": "#/$defs/SizeAndSunshineStats",
          "description": "Size and sunlight quantiles for the entire building, including parts of the roof that were not assigned to some roof segment. Because the orientations of these parts are not well characterised, the roof area estimate is unreliable, but the ground area estimate is reliable. It may be that a more reliable whole building roof area can be obtained by scaling the roof area from whole_roof_stats by the ratio of the ground areas of `building_stats` and `whole_roof_stats`."
        },
        "roofSegmentStats": {
          "items": {
            "$ref": "#/$defs/RoofSegmentSizeAndSunshineStats"
          },
          "type": "array",
          "description": "Size and sunlight quantiles for each roof segment."
        }
      },
      "description": "Information about the solar potential of a building. A number of fields in this are defined in terms of \"panels\". The fields panel_capacity_watts, panel_height_meters, and panel_width_meters describe the parameters of the model of panel used in these calculations.",
      "type": "object"
    }
  }
}