/// <summary> /// Power Forecasts for the location /// </summary> /// <param name="client"></param> /// <param name="location">Location is a EPSG 4326 Latitude/Longitude position on the Earth</param> /// <returns></returns> public static async Task <GetPvPowerForecastsResponse> GetPvPowerForecastsAsync(this SolcastClient client, Location location) { var reqObj = location.ConvertTo <GetPvPowerForecasts>().PopulateWithNonDefaultValues(client.PowerOptions); var result = await client.GetAsync(reqObj); return(result.Format(client.CurrentTimeZone)); }
/// <summary> /// Radiation Latest Estimated Actuals for the location /// </summary> /// <param name="client"></param> /// <param name="location">Location is a EPSG 4326 Latitude/Longitude position on the Earth</param> /// <returns></returns> public static async Task <GetLatestRadiationEstimatedActualsResponse> GetLatestRadiationEstimatedActualsAsync( this SolcastClient client, Location location) { var result = await client.GetAsync(location.ConvertTo <GetLatestRadiationEstimatedActuals>()); return(result.Format(client.CurrentTimeZone)); }