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

WeatherRestService.getForecast() method

Point-in-time forecast: each coordinate at a future instant (now + duration). Mirrors WeatherService::getForecast / C++ CService::GetForecast (WeatherRoute).

Signature:

getForecast(coords: WeatherDurationCoordinates[], signal?: AbortSignal): Promise<LocationForecast[]>;

Parameters

Parameter

Type

Description

coords

WeatherDurationCoordinates[]

signal

AbortSignal

(Optional)

Returns:

Promise<LocationForecast[]>