Ensemble class
Hundreds Of Weather Forecasts, Every time, Everywhere, All at Once.
Constructors
- Ensemble.new({String apiUrl = 'https://ensemble-api.open-meteo.com/v1/', required double latitude, required double longitude, double? elevation, TemperatureUnit? temperature_unit, WindspeedUnit? windspeed_unit, PrecipitationUnit? precipitation_unit, int? past_days, int? forecast_days, int? forecast_hours, int? forecast_minutely_15, int? past_hours, int? past_minutely_15, DateTime? start_date, DateTime? end_date, DateTime? start_hour, DateTime? end_hour, DateTime? start_minutely_15, DateTime? end_minutely_15, CellSelection? cell_selection, String? apikey})
Properties
- apikey ↔ String?
-
Only required to commercial use to access reserved API resources for customers.
getter/setter pair
- apiUrl ↔ String
-
Custom API URL, format:
https://<domain>/<version>/
.getter/setter pair - cell_selection ↔ CellSelection?
-
Set a preference how grid-cells are selected.
getter/setter pair
- elevation ↔ double?
-
The elevation used for statistical downscaling. Per default,
a 90 meter digital elevation model is used.
You can manually set the elevation to correctly match mountain peaks.
getter/setter pair
- end_date ↔ DateTime?
-
The time interval to get weather data.
getter/setter pair
- end_hour ↔ DateTime?
-
The time interval to get weather data for hourly or 15 minutely data.
getter/setter pair
- end_minutely_15 ↔ DateTime?
-
The time interval to get weather data for hourly or 15 minutely data.
getter/setter pair
- forecast_days ↔ int?
-
Per default, only 7 days are returned. Up to 35 days of forecast are possible.
getter/setter pair
- forecast_hours ↔ int?
-
Similar to forecast_days, the number of timesteps of hourly and 15-minutely
data can controlled. Instead of using the current day as a reference,
the current hour or the current 15-minute time-step is used.
getter/setter pair
- forecast_minutely_15 ↔ int?
-
Similar to forecast_days, the number of timesteps of hourly and 15-minutely
data can controlled. Instead of using the current day as a reference,
the current hour or the current 15-minute time-step is used.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude → double
-
Geographical WGS84 coordinates of the location.
final
- longitude → double
-
Geographical WGS84 coordinates of the location.
final
- past_days ↔ int?
-
If
past_days
is set, past weather data can be returned.getter/setter pair - past_hours ↔ int?
-
Similar to forecast_days, the number of timesteps of hourly and 15-minutely
data can controlled. Instead of using the current day as a reference,
the current hour or the current 15-minute time-step is used.
getter/setter pair
- past_minutely_15 ↔ int?
-
Similar to forecast_days, the number of timesteps of hourly and 15-minutely
data can controlled. Instead of using the current day as a reference,
the current hour or the current 15-minute time-step is used.
getter/setter pair
- precipitation_unit ↔ PrecipitationUnit?
-
Other precipitation amount units:
PrecipitationUnit.inch
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start_date ↔ DateTime?
-
The time interval to get weather data.
getter/setter pair
- start_hour ↔ DateTime?
-
The time interval to get weather data for hourly or 15 minutely data.
getter/setter pair
- start_minutely_15 ↔ DateTime?
-
The time interval to get weather data for hourly or 15 minutely data.
getter/setter pair
- temperature_unit ↔ TemperatureUnit?
-
If
TemperatureUnit.fahrenheit
is set, all temperature values are converted to Fahrenheit.getter/setter pair - windspeed_unit ↔ WindspeedUnit?
-
Other wind speed speed units:
WindspeedUnit.ms
,WindspeedUnit.mph
andWindspeedUnit.kn
.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
raw_request(
{required List< EnsembleModel> models, List<Hourly> ? hourly}) → Future<Map< String, dynamic> > - Create a HTTP request. The function will return JSON data as Map if successful.
-
request(
{required List< EnsembleModel> models, List<Hourly> ? hourly}) → Future<WeatherResponse> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited