Home > @magiclane/maps-sdk > WeatherService
WeatherService class
Service for retrieving weather forecasts and conditions.
This service provides methods to fetch current weather conditions, hourly forecasts, daily forecasts, and general weather data for specified geographic locations.
Weather
Signature:
export declare abstract class WeatherService Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
number |
Gets the maximum number of coordinates allowed per request. | |
|
|
number |
Gets the maximum number of days allowed per daily forecast request. | |
|
|
number |
Gets the maximum number of hours allowed per hourly forecast request. | |
|
|
TransferStatistics |
Gets transfer statistics for weather service operations. Returns a TransferStatistics object containing counters and metrics about network usage performed by the weather service. This information can be used for diagnostics or to display usage to end users. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
Cancels an ongoing asynchronous weather operation. | |
|
|
Retrieves current weather for specified coordinates. | |
|
|
Retrieves daily weather forecast for specified coordinates. | |
|
|
Retrieves weather forecast for coordinates at specified future times. The duration in each WeatherDurationCoordinates specifies the time offset into the future for which the forecast is requested. | |
|
|
Retrieves hourly weather forecast for specified coordinates. |