{
  "version": "v1",
  "documentationLink": "https://developers.google.com/maps/documentation/solar",
  "title": "Solar API",
  "resources": {
    "buildingInsights": {
      "methods": {
        "findClosest": {
          "id": "solar.buildingInsights.findClosest",
          "path": "v1/buildingInsights:findClosest",
          "flatPath": "v1/buildingInsights:findClosest",
          "httpMethod": "GET",
          "parameters": {
            "location.latitude": {
              "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
              "location": "query",
              "type": "number",
              "format": "double"
            },
            "location.longitude": {
              "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
              "location": "query",
              "type": "number",
              "format": "double"
            },
            "requiredQuality": {
              "description": "Optional. The minimum quality level allowed in the results. No result with lower quality than this will be returned. Not specifying this is equivalent to restricting to HIGH quality only.",
              "location": "query",
              "type": "string",
              "enumDescriptions": [
                "No quality is known.",
                "Solar data is derived from aerial imagery captured at low-altitude and processed at 0.1 m/pixel.",
                "Solar data is derived from enhanced aerial imagery captured at high-altitude and processed at 0.25 m/pixel.",
                "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel.",
                "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel."
              ],
              "enum": [
                "IMAGERY_QUALITY_UNSPECIFIED",
                "HIGH",
                "MEDIUM",
                "LOW",
                "BASE"
              ]
            },
            "exactQualityRequired": {
              "description": "Optional. Whether to require exact quality of the imagery. If set to false, the `required_quality` field is interpreted as the minimum required quality, such that HIGH quality imagery may be returned when `required_quality` is set to MEDIUM. If set to true, `required_quality` is interpreted as the exact required quality and only `MEDIUM` quality imagery is returned if `required_quality` is set to `MEDIUM`.",
              "location": "query",
              "type": "boolean"
            },
            "experiments": {
              "description": "Optional. Specifies the pre-GA experiments to enable. Requests using this field are classified as a pre-GA offering under the [Google Maps Platform Service Specific Terms](https://cloud.google.com/maps-platform/terms/maps-service-terms). See [launch stage descriptions](https://cloud.google.com/maps-platform/terms/launch-stages) for more details.",
              "location": "query",
              "repeated": true,
              "type": "string",
              "enumDescriptions": [
                "No experiments are specified.",
                "Expands the geographic region available for querying solar data. For more information, see [Expanded Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage)."
              ],
              "enum": [
                "EXPERIMENT_UNSPECIFIED",
                "EXPANDED_COVERAGE"
              ]
            },
            "additionalInsights": {
              "description": "Optional. A list of additional_insights to be included in the response.",
              "location": "query",
              "repeated": true,
              "type": "string",
              "enumDescriptions": [
                "The default value. The default BuildingInsights will be returned.",
                "Determines whether the response will include the detected arrays. If specified, the `detected_arrays` field will be populated in the response."
              ],
              "enum": [
                "ADDITIONAL_INSIGHTS_UNSPECIFIED",
                "DETECTED_ARRAYS"
              ]
            }
          },
          "parameterOrder": [],
          "response": {
            "$ref": "BuildingInsights"
          },
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "description": "Locates the building whose centroid is closest to a query point. Returns an error with code `NOT_FOUND` if there are no buildings within approximately 50m of the query point."
        }
      }
    },
    "dataLayers": {
      "methods": {
        "get": {
          "id": "solar.dataLayers.get",
          "path": "v1/dataLayers:get",
          "flatPath": "v1/dataLayers:get",
          "httpMethod": "GET",
          "parameters": {
            "location.latitude": {
              "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
              "location": "query",
              "type": "number",
              "format": "double"
            },
            "location.longitude": {
              "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
              "location": "query",
              "type": "number",
              "format": "double"
            },
            "radiusMeters": {
              "description": "Required. The radius, in meters, defining the region surrounding that centre point for which data should be returned. The limitations on this value are: * Any value up to 100m can always be specified. * Values over 100m can be specified, as long as `radius_meters` \u003c= `pixel_size_meters * 1000`. * However, for values over 175m, the `DataLayerView` in the request must not include monthly flux or hourly shade.",
              "location": "query",
              "type": "number",
              "format": "float"
            },
            "view": {
              "description": "Optional. The desired subset of the data to return.",
              "location": "query",
              "type": "string",
              "enumDescriptions": [
                "Equivalent to FULL.",
                "Get the DSM only.",
                "Get the DSM, RGB, and mask.",
                "Get the DSM, RGB, mask, and annual flux.",
                "Get the DSM, RGB, mask, annual flux, and monthly flux.",
                "Get all data."
              ],
              "enum": [
                "DATA_LAYER_VIEW_UNSPECIFIED",
                "DSM_LAYER",
                "IMAGERY_LAYERS",
                "IMAGERY_AND_ANNUAL_FLUX_LAYERS",
                "IMAGERY_AND_ALL_FLUX_LAYERS",
                "FULL_LAYERS"
              ]
            },
            "requiredQuality": {
              "description": "Optional. The minimum quality level allowed in the results. No result with lower quality than this will be returned. Not specifying this is equivalent to restricting to HIGH quality only.",
              "location": "query",
              "type": "string",
              "enumDescriptions": [
                "No quality is known.",
                "Solar data is derived from aerial imagery captured at low-altitude and processed at 0.1 m/pixel.",
                "Solar data is derived from enhanced aerial imagery captured at high-altitude and processed at 0.25 m/pixel.",
                "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel.",
                "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel."
              ],
              "enum": [
                "IMAGERY_QUALITY_UNSPECIFIED",
                "HIGH",
                "MEDIUM",
                "LOW",
                "BASE"
              ]
            },
            "pixelSizeMeters": {
              "description": "Optional. The minimum scale, in meters per pixel, of the data to return. Values of 0.1 (the default, if this field is not set explicitly), 0.25, 0.5, and 1.0 are supported. Imagery components whose normal resolution is less than `pixel_size_meters` will be returned at the resolution specified by `pixel_size_meters`; imagery components whose normal resolution is equal to or greater than `pixel_size_meters` will be returned at that normal resolution.",
              "location": "query",
              "type": "number",
              "format": "float"
            },
            "exactQualityRequired": {
              "description": "Optional. Whether to require exact quality of the imagery. If set to false, the `required_quality` field is interpreted as the minimum required quality, such that HIGH quality imagery may be returned when `required_quality` is set to MEDIUM. If set to true, `required_quality` is interpreted as the exact required quality and only `MEDIUM` quality imagery is returned if `required_quality` is set to `MEDIUM`.",
              "location": "query",
              "type": "boolean"
            },
            "experiments": {
              "description": "Optional. Specifies the pre-GA experiments to enable. Requests using this field are classified as a pre-GA offering under the [Google Maps Platform Service Specific Terms](https://cloud.google.com/maps-platform/terms/maps-service-terms). See [launch stage descriptions]( https://cloud.google.com/maps-platform/terms/launch-stages) for more details.",
              "location": "query",
              "repeated": true,
              "type": "string",
              "enumDescriptions": [
                "No experiments are specified.",
                "Expands the geographic region available for querying solar data. For more information, see [Expanded Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage)."
              ],
              "enum": [
                "EXPERIMENT_UNSPECIFIED",
                "EXPANDED_COVERAGE"
              ]
            }
          },
          "parameterOrder": [],
          "response": {
            "$ref": "DataLayers"
          },
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "description": "Gets solar information for a region surrounding a location. Returns an error with code `NOT_FOUND` if the location is outside the coverage area."
        }
      }
    },
    "geoTiff": {
      "methods": {
        "get": {
          "id": "solar.geoTiff.get",
          "path": "v1/geoTiff:get",
          "flatPath": "v1/geoTiff:get",
          "httpMethod": "GET",
          "parameters": {
            "id": {
              "description": "Required. The ID of the asset being requested.",
              "location": "query",
              "type": "string"
            }
          },
          "parameterOrder": [],
          "response": {
            "$ref": "HttpBody"
          },
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "description": "Returns an image by its ID."
        }
      }
    }
  },
  "version_module": true,
  "revision": "20260512",
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/cloud-platform": {
          "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
        }
      }
    }
  },
  "kind": "discovery#restDescription",
  "schemas": {
    "BuildingInsights": {
      "id": "BuildingInsights",
      "description": "Response message for `Solar.FindClosestBuildingInsights`. Information about the location, dimensions, and solar potential of a building.",
      "type": "object",
      "properties": {
        "name": {
          "description": "The resource name for the building, of the format `buildings/{place_id}`.",
          "type": "string"
        },
        "center": {
          "description": "A point near the center of the building.",
          "$ref": "LatLng"
        },
        "boundingBox": {
          "description": "The bounding box of the building.",
          "$ref": "LatLngBox"
        },
        "imageryDate": {
          "description": "Date that the underlying imagery was acquired. This is approximate.",
          "$ref": "Date"
        },
        "imageryProcessedDate": {
          "description": "When processing was completed on this imagery.",
          "$ref": "Date"
        },
        "postalCode": {
          "description": "Postal code (e.g., US zip code) this building is contained by.",
          "type": "string"
        },
        "administrativeArea": {
          "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.\"",
          "type": "string"
        },
        "statisticalArea": {
          "description": "Statistical area (e.g., US census tract) this building is in.",
          "type": "string"
        },
        "regionCode": {
          "description": "Region code for the country (or region) this building is in.",
          "type": "string"
        },
        "solarPotential": {
          "description": "Solar potential of the building.",
          "$ref": "SolarPotential"
        },
        "imageryQuality": {
          "description": "The quality of the imagery used to compute the data for this building.",
          "type": "string",
          "enumDescriptions": [
            "No quality is known.",
            "Solar data is derived from aerial imagery captured at low-altitude and processed at 0.1 m/pixel.",
            "Solar data is derived from enhanced aerial imagery captured at high-altitude and processed at 0.25 m/pixel.",
            "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel.",
            "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel."
          ],
          "enum": [
            "IMAGERY_QUALITY_UNSPECIFIED",
            "HIGH",
            "MEDIUM",
            "LOW",
            "BASE"
          ]
        },
        "detectedArrays": {
          "description": "Solar arrays detected on the building. This field is only populated if DETECTED_ARRAYS is included in the request's FindClosestBuildingInsightsRequest.additional_insights.",
          "$ref": "BuildingInsightsDetectedArrays"
        }
      }
    },
    "LatLng": {
      "id": "LatLng",
      "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",
      "properties": {
        "latitude": {
          "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
          "type": "number",
          "format": "double"
        },
        "longitude": {
          "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
          "type": "number",
          "format": "double"
        }
      }
    },
    "LatLngBox": {
      "id": "LatLngBox",
      "description": "A bounding box in lat/lng coordinates.",
      "type": "object",
      "properties": {
        "sw": {
          "description": "The southwest corner of the box.",
          "$ref": "LatLng"
        },
        "ne": {
          "description": "The northeast corner of the box.",
          "$ref": "LatLng"
        }
      }
    },
    "Date": {
      "id": "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": {
        "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"
        },
        "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": {
          "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.",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "SolarPotential": {
      "id": "SolarPotential",
      "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",
      "properties": {
        "maxArrayPanelsCount": {
          "description": "Size of the maximum array - that is, the maximum number of panels that can fit on the roof.",
          "type": "integer",
          "format": "int32"
        },
        "panelCapacityWatts": {
          "description": "Capacity, in watts, of the panel used in the calculations.",
          "type": "number",
          "format": "float"
        },
        "panelHeightMeters": {
          "description": "Height, in meters in portrait orientation, of the panel used in the calculations.",
          "type": "number",
          "format": "float"
        },
        "panelWidthMeters": {
          "description": "Width, in meters in portrait orientation, of the panel used in the calculations.",
          "type": "number",
          "format": "float"
        },
        "panelLifetimeYears": {
          "description": "The expected lifetime, in years, of the solar panels. This is used in the financial calculations.",
          "type": "integer",
          "format": "int32"
        },
        "maxArrayAreaMeters2": {
          "description": "Size, in square meters, of the maximum array.",
          "type": "number",
          "format": "float"
        },
        "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"
        },
        "carbonOffsetFactorKgPerMwh": {
          "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.",
          "type": "number",
          "format": "float"
        },
        "wholeRoofStats": {
          "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.",
          "$ref": "SizeAndSunshineStats"
        },
        "buildingStats": {
          "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`.",
          "$ref": "SizeAndSunshineStats"
        },
        "roofSegmentStats": {
          "description": "Size and sunlight quantiles for each roof segment.",
          "type": "array",
          "items": {
            "$ref": "RoofSegmentSizeAndSunshineStats"
          }
        },
        "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": "SolarPanel"
          }
        },
        "solarPanelConfigs": {
          "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",
          "items": {
            "$ref": "SolarPanelConfig"
          }
        },
        "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.",
          "type": "array",
          "items": {
            "$ref": "FinancialAnalysis"
          }
        }
      }
    },
    "SizeAndSunshineStats": {
      "id": "SizeAndSunshineStats",
      "description": "Size and sunniness quantiles of a roof, or part of a roof.",
      "type": "object",
      "properties": {
        "areaMeters2": {
          "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.",
          "type": "number",
          "format": "float"
        },
        "sunshineQuantiles": {
          "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",
          "items": {
            "type": "number",
            "format": "float"
          }
        },
        "groundAreaMeters2": {
          "description": "The ground footprint area covered by the roof or roof segment, in m^2.",
          "type": "number",
          "format": "float"
        }
      }
    },
    "RoofSegmentSizeAndSunshineStats": {
      "id": "RoofSegmentSizeAndSunshineStats",
      "description": "Information about the size and sunniness quantiles of a roof segment.",
      "type": "object",
      "properties": {
        "pitchDegrees": {
          "description": "Angle of the roof segment relative to the theoretical ground plane. 0 = parallel to the ground, 90 = perpendicular to the ground.",
          "type": "number",
          "format": "float"
        },
        "azimuthDegrees": {
          "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",
          "format": "float"
        },
        "stats": {
          "description": "Total size and sunlight quantiles for the roof segment.",
          "$ref": "SizeAndSunshineStats"
        },
        "center": {
          "description": "A point near the center of the roof segment.",
          "$ref": "LatLng"
        },
        "boundingBox": {
          "description": "The bounding box of the roof segment.",
          "$ref": "LatLngBox"
        },
        "planeHeightAtCenterMeters": {
          "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",
          "format": "float"
        }
      }
    },
    "SolarPanel": {
      "id": "SolarPanel",
      "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.",
      "type": "object",
      "properties": {
        "center": {
          "description": "The centre of the panel.",
          "$ref": "LatLng"
        },
        "orientation": {
          "description": "The orientation of the panel.",
          "type": "string",
          "enumDescriptions": [
            "No panel orientation is known.",
            "A `LANDSCAPE` panel has its long edge perpendicular to the azimuth direction of the roof segment that it is placed on.",
            "A `PORTRAIT` panel has its long edge parallel to the azimuth direction of the roof segment that it is placed on."
          ],
          "enum": [
            "SOLAR_PANEL_ORIENTATION_UNSPECIFIED",
            "LANDSCAPE",
            "PORTRAIT"
          ]
        },
        "yearlyEnergyDcKwh": {
          "description": "How much sunlight energy this layout captures over the course of a year, in DC kWh.",
          "type": "number",
          "format": "float"
        },
        "segmentIndex": {
          "description": "Index in roof_segment_stats of the `RoofSegmentSizeAndSunshineStats` which corresponds to the roof segment that this panel is placed on.",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "SolarPanelConfig": {
      "id": "SolarPanelConfig",
      "description": "SolarPanelConfig describes a particular placement of solar panels on the roof.",
      "type": "object",
      "properties": {
        "panelsCount": {
          "description": "Total number of panels. Note that this is redundant to (the sum of) the corresponding fields in roof_segment_summaries.",
          "type": "integer",
          "format": "int32"
        },
        "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"
        },
        "roofSegmentSummaries": {
          "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",
          "items": {
            "$ref": "RoofSegmentSummary"
          }
        }
      }
    },
    "RoofSegmentSummary": {
      "id": "RoofSegmentSummary",
      "description": "Information about a roof segment on the building, with some number of panels placed on it.",
      "type": "object",
      "properties": {
        "pitchDegrees": {
          "description": "Angle of the roof segment relative to the theoretical ground plane. 0 = parallel to the ground, 90 = perpendicular to the ground.",
          "type": "number",
          "format": "float"
        },
        "azimuthDegrees": {
          "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",
          "format": "float"
        },
        "panelsCount": {
          "description": "The total number of panels on this segment.",
          "type": "integer",
          "format": "int32"
        },
        "yearlyEnergyDcKwh": {
          "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.",
          "type": "number",
          "format": "float"
        },
        "segmentIndex": {
          "description": "Index in roof_segment_stats of the corresponding `RoofSegmentSizeAndSunshineStats`.",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "FinancialAnalysis": {
      "id": "FinancialAnalysis",
      "description": "Analysis of the cost and benefits of the optimum solar layout for a particular electric bill size.",
      "type": "object",
      "properties": {
        "monthlyBill": {
          "description": "The monthly electric bill this analysis assumes.",
          "$ref": "Money"
        },
        "defaultBill": {
          "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.",
          "type": "boolean"
        },
        "averageKwhPerMonth": {
          "description": "How much electricity the house uses in an average month, based on the bill size and the local electricity rates.",
          "type": "number",
          "format": "float"
        },
        "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": {
          "description": "Financial information that applies regardless of the financing method used.",
          "$ref": "FinancialDetails"
        },
        "leasingSavings": {
          "description": "Cost and benefit of leasing the solar panels.",
          "$ref": "LeasingSavings"
        },
        "cashPurchaseSavings": {
          "description": "Cost and benefit of buying the solar panels with cash.",
          "$ref": "CashPurchaseSavings"
        },
        "financedPurchaseSavings": {
          "description": "Cost and benefit of buying the solar panels by financing the purchase.",
          "$ref": "FinancedPurchaseSavings"
        }
      }
    },
    "Money": {
      "id": "Money",
      "description": "Represents an amount of money with its currency type.",
      "type": "object",
      "properties": {
        "currencyCode": {
          "description": "The three-letter currency code defined in ISO 4217.",
          "type": "string"
        },
        "units": {
          "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.",
          "type": "string",
          "format": "int64"
        },
        "nanos": {
          "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.",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "FinancialDetails": {
      "id": "FinancialDetails",
      "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",
      "properties": {
        "initialAcKwhPerYear": {
          "description": "How many AC kWh we think the solar panels will generate in their first year.",
          "type": "number",
          "format": "float"
        },
        "remainingLifetimeUtilityBill": {
          "description": "Utility bill for electricity not produced by solar, for the lifetime of the panels.",
          "$ref": "Money"
        },
        "federalIncentive": {
          "description": "Amount of money available from federal incentives; this applies if the user buys (with or without a loan) the panels.",
          "$ref": "Money"
        },
        "stateIncentive": {
          "description": "Amount of money available from state incentives; this applies if the user buys (with or without a loan) the panels.",
          "$ref": "Money"
        },
        "utilityIncentive": {
          "description": "Amount of money available from utility incentives; this applies if the user buys (with or without a loan) the panels.",
          "$ref": "Money"
        },
        "lifetimeSrecTotal": {
          "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.",
          "$ref": "Money"
        },
        "costOfElectricityWithoutSolar": {
          "description": "Total cost of electricity the user would have paid over the lifetime period if they didn't install solar.",
          "$ref": "Money"
        },
        "netMeteringAllowed": {
          "description": "Whether net metering is allowed.",
          "type": "boolean"
        },
        "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"
        },
        "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.",
          "type": "number",
          "format": "float"
        }
      }
    },
    "LeasingSavings": {
      "id": "LeasingSavings",
      "description": "Cost and benefit of leasing a particular configuration of solar panels with a particular electricity usage.",
      "type": "object",
      "properties": {
        "leasesAllowed": {
          "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.",
          "type": "boolean"
        },
        "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": {
          "description": "Estimated annual leasing cost.",
          "$ref": "Money"
        },
        "savings": {
          "description": "How much is saved (or not) over the lifetime period.",
          "$ref": "SavingsOverTime"
        }
      }
    },
    "SavingsOverTime": {
      "id": "SavingsOverTime",
      "description": "Financial information that's shared between different financing methods.",
      "type": "object",
      "properties": {
        "savingsYear1": {
          "description": "Savings in the first year after panel installation.",
          "$ref": "Money"
        },
        "savingsYear20": {
          "description": "Savings in the first twenty years after panel installation.",
          "$ref": "Money"
        },
        "presentValueOfSavingsYear20": {
          "description": "Using the assumed discount rate, what is the present value of the cumulative 20-year savings?",
          "$ref": "Money"
        },
        "savingsLifetime": {
          "description": "Savings in the entire panel lifetime.",
          "$ref": "Money"
        },
        "presentValueOfSavingsLifetime": {
          "description": "Using the assumed discount rate, what is the present value of the cumulative lifetime savings?",
          "$ref": "Money"
        },
        "financiallyViable": {
          "description": "Indicates whether this scenario is financially viable. Will be false for scenarios with poor financial viability (e.g., money-losing).",
          "type": "boolean"
        }
      }
    },
    "CashPurchaseSavings": {
      "id": "CashPurchaseSavings",
      "description": "Cost and benefit of an outright purchase of a particular configuration of solar panels with a particular electricity usage.",
      "type": "object",
      "properties": {
        "outOfPocketCost": {
          "description": "Initial cost before tax incentives: the amount that must be paid out-of-pocket. Contrast with `upfront_cost`, which is after tax incentives.",
          "$ref": "Money"
        },
        "upfrontCost": {
          "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.",
          "$ref": "Money"
        },
        "rebateValue": {
          "description": "The value of all tax rebates.",
          "$ref": "Money"
        },
        "paybackYears": {
          "description": "Number of years until payback occurs. A negative value means payback never occurs within the lifetime period.",
          "type": "number",
          "format": "float"
        },
        "savings": {
          "description": "How much is saved (or not) over the lifetime period.",
          "$ref": "SavingsOverTime"
        }
      }
    },
    "FinancedPurchaseSavings": {
      "id": "FinancedPurchaseSavings",
      "description": "Cost and benefit of using a loan to buy a particular configuration of solar panels with a particular electricity usage.",
      "type": "object",
      "properties": {
        "annualLoanPayment": {
          "description": "Annual loan payments.",
          "$ref": "Money"
        },
        "rebateValue": {
          "description": "The value of all tax rebates (including Federal Investment Tax Credit (ITC)).",
          "$ref": "Money"
        },
        "loanInterestRate": {
          "description": "The interest rate on loans assumed in this set of calculations.",
          "type": "number",
          "format": "float"
        },
        "savings": {
          "description": "How much is saved (or not) over the lifetime period.",
          "$ref": "SavingsOverTime"
        }
      }
    },
    "BuildingInsightsDetectedArrays": {
      "id": "BuildingInsightsDetectedArrays",
      "description": "Information about solar arrays detected on the building.",
      "type": "object",
      "properties": {
        "detectionStatus": {
          "description": "Indicates the detection status of solar arrays for this building.",
          "type": "string",
          "enumDescriptions": [
            "Unspecified status.",
            "Detected solar array data is unavailable for this building.",
            "At least one solar array has been detected for this building.",
            "No solar arrays detected for this building."
          ],
          "enum": [
            "DETECTION_STATUS_UNSPECIFIED",
            "DETECTION_STATUS_DATA_UNAVAILABLE",
            "DETECTION_STATUS_ARRAYS_DETECTED",
            "DETECTION_STATUS_NO_ARRAYS_DETECTED"
          ]
        },
        "latestCaptureDate": {
          "description": "The date indicating when the latest solar array data was captured.",
          "$ref": "Date"
        }
      }
    },
    "DataLayers": {
      "id": "DataLayers",
      "description": "Information about the solar potential of a region. The actual data are contained in a number of GeoTIFF files covering the requested region, for which this message contains URLs: Each string in the `DataLayers` message contains a URL from which the corresponding GeoTIFF can be fetched. These URLs are valid for a few hours after they've been generated. Most of the GeoTIFF files are at a resolution of 0.1m/pixel, but the monthly flux file is at 0.5m/pixel, and the hourly shade files are at 1m/pixel. If a `pixel_size_meters` value was specified in the `GetDataLayersRequest`, then the minimum resolution in the GeoTIFF files will be that value.",
      "type": "object",
      "properties": {
        "imageryDate": {
          "description": "When the source imagery (from which all the other data are derived) in this region was taken. It is necessarily somewhat approximate, as the images may have been taken over more than one day.",
          "$ref": "Date"
        },
        "imageryProcessedDate": {
          "description": "When processing was completed on this imagery.",
          "$ref": "Date"
        },
        "dsmUrl": {
          "description": "The URL for an image of the DSM (Digital Surface Model) of the region. Values are in meters above EGM96 geoid (i.e., sea level). Invalid locations (where we don't have data) are stored as -9999.",
          "type": "string"
        },
        "rgbUrl": {
          "description": "The URL for an image of RGB data (aerial or satellite photo) of the region.",
          "type": "string"
        },
        "maskUrl": {
          "description": "The URL for the building mask image: one bit per pixel saying whether that pixel is considered to be part of a rooftop or not.",
          "type": "string"
        },
        "annualFluxUrl": {
          "description": "The URL for the annual flux map (annual sunlight on roofs) of the region. Values are kWh/kW/year. This is *unmasked flux*: flux is computed for every location, not just building rooftops. Invalid locations are stored as -9999: locations outside our coverage area will be invalid, and a few locations inside the coverage area, where we were unable to calculate flux, will also be invalid.",
          "type": "string"
        },
        "monthlyFluxUrl": {
          "description": "The URL for the monthly flux map (sunlight on roofs, broken down by month) of the region. Values are kWh/kW/year. The GeoTIFF pointed to by this URL will contain twelve bands, corresponding to January...December, in order.",
          "type": "string"
        },
        "hourlyShadeUrls": {
          "description": "Twelve URLs for hourly shade, corresponding to January...December, in order. Each GeoTIFF will contain 24 bands, corresponding to the 24 hours of the day. Each pixel is a 32 bit integer, corresponding to the (up to) 31 days of that month; a 1 bit means that the corresponding location is able to see the sun at that day, of that hour, of that month. Invalid locations are stored as -9999 (since this is negative, it has bit 31 set, and no valid value could have bit 31 set as that would correspond to the 32nd day of the month). An example may be useful. If you want to know whether a point (at pixel location (x, y)) saw sun at 4pm on the 22nd of June you would: 1. fetch the sixth URL in this list (corresponding to June). 1. look up the 17th channel (corresponding to 4pm). 1. read the 32-bit value at (x, y). 1. read bit 21 of the value (corresponding to the 22nd of the month). 1. if that bit is a 1, then that spot saw the sun at 4pm 22 June. More formally: Given `month` (1-12), `day` (1...month max; February has 28 days) and `hour` (0-23), the shade/sun for that month/day/hour at a position `(x, y)` is the bit ``` (hourly_shade[month - 1])(x, y)[hour] & (1 \u003c\u003c (day - 1)) ``` where `(x, y)` is spatial indexing, `[month - 1]` refers to fetching the `month - 1`st URL (indexing from zero), `[hour]` is indexing into the channels, and a final non-zero result means \"sunny\". There are no leap days, and DST doesn't exist (all days are 24 hours long; noon is always \"standard time\" noon).",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "imageryQuality": {
          "description": "The quality of the result's imagery.",
          "type": "string",
          "enumDescriptions": [
            "No quality is known.",
            "Solar data is derived from aerial imagery captured at low-altitude and processed at 0.1 m/pixel.",
            "Solar data is derived from enhanced aerial imagery captured at high-altitude and processed at 0.25 m/pixel.",
            "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel.",
            "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel."
          ],
          "enum": [
            "IMAGERY_QUALITY_UNSPECIFIED",
            "HIGH",
            "MEDIUM",
            "LOW",
            "BASE"
          ]
        }
      }
    },
    "HttpBody": {
      "id": "HttpBody",
      "description": "Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.",
      "type": "object",
      "properties": {
        "contentType": {
          "description": "The HTTP Content-Type header value specifying the content type of the body.",
          "type": "string"
        },
        "data": {
          "description": "The HTTP request/response body as raw binary.",
          "type": "string",
          "format": "byte"
        },
        "extensions": {
          "description": "Application specific response metadata. Must be set in the first response for streaming APIs.",
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "any",
              "description": "Properties of the object. Contains field @type with type URL."
            }
          }
        }
      }
    }
  },
  "protocol": "rest",
  "discoveryVersion": "v1",
  "name": "solar",
  "rootUrl": "https://solar.googleapis.com/",
  "id": "solar:v1",
  "basePath": "",
  "description": "Solar API.",
  "parameters": {
    "access_token": {
      "type": "string",
      "description": "OAuth access token.",
      "location": "query"
    },
    "alt": {
      "type": "string",
      "description": "Data format for response.",
      "default": "json",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "location": "query"
    },
    "callback": {
      "type": "string",
      "description": "JSONP",
      "location": "query"
    },
    "fields": {
      "type": "string",
      "description": "Selector specifying which fields to include in a partial response.",
      "location": "query"
    },
    "key": {
      "type": "string",
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
      "location": "query"
    },
    "oauth_token": {
      "type": "string",
      "description": "OAuth 2.0 token for the current user.",
      "location": "query"
    },
    "prettyPrint": {
      "type": "boolean",
      "description": "Returns response with indentations and line breaks.",
      "default": "true",
      "location": "query"
    },
    "quotaUser": {
      "type": "string",
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
      "location": "query"
    },
    "upload_protocol": {
      "type": "string",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
      "location": "query"
    },
    "uploadType": {
      "type": "string",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
      "location": "query"
    },
    "$.xgafv": {
      "type": "string",
      "description": "V1 error format.",
      "enum": [
        "1",
        "2"
      ],
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "location": "query"
    }
  },
  "fullyEncodeReservedExpansion": true,
  "servicePath": "",
  "batchPath": "batch",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "ownerName": "Google",
  "canonicalName": "Solar",
  "mtlsRootUrl": "https://solar.mtls.googleapis.com/",
  "baseUrl": "https://solar.googleapis.com/",
  "ownerDomain": "google.com"
}
