namespace ML.SDK
Class
MLWeatherData
namespace ML.SDK
{
class MLWeatherData
}
Inherits from MonoBehaviour
Summary
Api interface for MLWeatherData component. MLWeatherData component fetches the weather for specified location. You can access the latest fetch results through this API. You can also register event handler to be called when the new weather fetch occurs.
Properties
Property | Desciption |
---|---|
ConnectionCheckStatus | Editor only |
GeoCodingStatus | Editor only |
GeoData | Editor only |
WeatherData | Current weather data all in one place |
CloudCoverage | Cloud coverage percentile. |
FeelsLike | Feels like temperature in Celsius. |
Humidity | Current humidity percentage. |
MaxTemperature | The maximum temperature read. In some locations the temperature data is collected from multiple stations. This value indicates the maximum of those readouts. |
MinTemperature | The minimum temperature read. In some locations the temperature data is collected from multiple stations. This value indicates the minimum of those readouts. |
Pressure | Current pressure in Hectopascal (hPa) |
RainVolumeInLastHour | The amount of rain in the last hour. It measures rainfall depth in mm. |
SnowVolumeInLastHour | The amount of snow in the last hour. It measures the snowfall depth in mm. |
Temperature | The current temperature in Celsius. |
Visibility | The current visibility in meters. Maximum is 10000 meters. |
WindBearing | The current wind direction angle from north in degrees. (meteorological) |
WindGust | Wind gust. |
WindSpeed | The current wind speed in meter per second (m/s) |
Methods
Method | Description |
---|---|
GetWeatherData() | Request the weather data to be updated. Note : Calling this will start a new request for weather data, therefore an API usage. Make sure you do not exceed your allowed API call limit. |
GeoCode(string) | Editor Only |