Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SolarPotential

import type { SolarPotential } from "https://googleapis.deno.dev/v1/solar:v1.ts";

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.

interface SolarPotential {
buildingStats?: SizeAndSunshineStats;
carbonOffsetFactorKgPerMwh?: number;
financialAnalyses?: FinancialAnalysis[];
maxArrayAreaMeters2?: number;
maxArrayPanelsCount?: number;
maxSunshineHoursPerYear?: number;
panelCapacityWatts?: number;
panelHeightMeters?: number;
panelLifetimeYears?: number;
panelWidthMeters?: number;
roofSegmentStats?: RoofSegmentSizeAndSunshineStats[];
solarPanelConfigs?: SolarPanelConfig[];
solarPanels?: SolarPanel[];
wholeRoofStats?: SizeAndSunshineStats;
}

§Properties

§

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.

§
carbonOffsetFactorKgPerMwh?: number
[src]

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.

§
financialAnalyses?: FinancialAnalysis[]
[src]

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.

§
maxArrayAreaMeters2?: number
[src]

Size, in square meters, of the maximum array.

§
maxArrayPanelsCount?: number
[src]

Size of the maximum array - that is, the maximum number of panels that can fit on the roof.

§
maxSunshineHoursPerYear?: number
[src]

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).

§
panelCapacityWatts?: number
[src]

Capacity, in watts, of the panel used in the calculations.

§
panelHeightMeters?: number
[src]

Height, in meters in portrait orientation, of the panel used in the calculations.

§
panelLifetimeYears?: number
[src]

The expected lifetime, in years, of the solar panels. This is used in the financial calculations.

§
panelWidthMeters?: number
[src]

Width, in meters in portrait orientation, of the panel used in the calculations.

§

Size and sunlight quantiles for each roof segment.

§
solarPanelConfigs?: SolarPanelConfig[]
[src]

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.

§
solarPanels?: SolarPanel[]
[src]

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.

§
wholeRoofStats?: SizeAndSunshineStats
[src]

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.