Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Endpoint string
}
func (*Client) AverageMonthlyIrradiation ¶
func (c *Client) AverageMonthlyIrradiation(latitude, longitude float64, angle int, useHorizon bool) (float64, error)
AverageMonthlyIrradiation returns a yearly irradiation average for the given location (latitude, longitude) and the given surface angle (0 = horizontal) pointing to the equator
func (*Client) MonthlyIrradiation ¶
func (c *Client) MonthlyIrradiation(latitude, longitude float64, angle int, useHorizon bool) ([]ResponseOutputsMonthly, error)
MonthlyIrradiation fetches monthly irradiation averages for the time from 2005 to 2020 for the given location (latitude, longitude) and the given surface angle (0 = horizontal) pointing to the equator
type Response ¶
type Response struct {
Outputs ResponseOutputs `json:"outputs"`
}
type ResponseOutputs ¶
type ResponseOutputs struct {
Monthly []ResponseOutputsMonthly `json:"monthly"`
}
Click to show internal directories.
Click to hide internal directories.