WeatherService class abstract Weather

Provides methods for retrieving weather forecasts.

This service enables fetching current weather conditions, hourly forecasts, and daily forecasts for specified geographic locations.

Constructors

WeatherService()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

maxCoordinatesPerRequest → int
Gets the maximum number of coordinates allowed per request.
no setter
maxDayForDailyForecast → int
Gets the maximum number of days allowed per daily forecast request.
no setter
maxHoursForHourlyForecast → int
Gets the maximum number of hours allowed per hourly forecast request.
no setter
transferStatistics → TransferStatistics
Gets transfer statistics for weather service operations.
no setter

Static Methods

cancel(ProgressListener listener) → void
Cancels an ongoing asynchronous weather operation.
getCurrent({required List<Coordinates> coords, void onComplete(GemError error, List<LocationForecast> locationForecasts)?, CoverageGeometry coverageGeometry = CoverageGeometry.none}) → ProgressListener
Retrieves current weather for specified coordinates.
getDailyForecast({required int days, required List<Coordinates> coords, void onComplete(GemError error, List<LocationForecast> locationForecasts)?}) → ProgressListener
Retrieves daily weather forecast for specified coordinates.
getForecast({required List<WeatherDurationCoordinates> coords, void onComplete(GemError error, List<LocationForecast> locationForecasts)?, CoverageGeometry coverageGeometry = CoverageGeometry.none}) → ProgressListener
Retrieves weather forecast for coordinates at specified future times.
getHourlyForecast({required int hours, required List<Coordinates> coords, void onComplete(GemError error, List<LocationForecast> locationForecasts)?}) → ProgressListener
Retrieves hourly weather forecast for specified coordinates.