Home > @magiclane/maps-sdk > WeatherService > getForecast

WeatherService.getForecast() method

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.

Signature:

static getForecast(input: {
        coords: WeatherDurationCoordinates[];
        onComplete?: (error: GemError, forecasts: LocationForecast[]) => void;
    }): ProgressListener;

Parameters

Parameter

Type

Description

{ coords, onComplete, }

(not declared)

input

{ coords: WeatherDurationCoordinates[]; onComplete?: (error: GemError, forecasts: LocationForecast[]) => void; }

input properties:

Returns:

ProgressListener

ProgressListener for tracking the operation