Weather topic

Includes weather and forecasting capabilities, covering current conditions, hourly and daily forecasts, parameter handling, and image support. It focuses on retrieving and modeling meteorological data for location-aware map experiences.

  • WeatherService: The primary interface for requesting current weather, hourly forecasts, daily forecasts, and time-specific forecasts for coordinates. Handles asynchronous operations and progress tracking.
  • LocationForecast: Holds forecast data for a geographic location, including the update timestamp, coordinates, and a list of forecasted conditions.
  • Conditions: Represents an individual weather observation or forecast entry, including description, timestamp, daylight state, measured parameters, and an associated image payload.
  • Parameter: Encapsulates a single weather metric (such as temperature, humidity, wind speed) with its numeric value, unit, and display name.
  • WeatherDurationCoordinates: A small value object pairing coordinates with a time offset used to request forecasts for specific future moments.
  • PredefinedParameterTypeValues: A set of standardized parameter type identifiers used across the weather API to ensure consistent interpretation of common meteorological values.

Mearn more about weather: https://developer.magiclane.com/docs/flutter/guides/category/weather

Classes

Conditions Weather
Weather conditions for a specific timestamp.
LocationForecast Weather
Weather forecast for a specific geographic location.
Parameter Weather
Weather parameter data.
PredefinedParameterTypeValues Weather
Predefined string constants for weather parameter types.
WeatherDurationCoordinates Weather
Coordinates with time offset for weather forecast requests.
WeatherService Weather
Provides methods for retrieving weather forecasts.

Enums

Daylight Weather
Represents the state of daylight conditions.