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

WeatherRestService.getCurrent() method

Current weather for each coordinate. Mirrors WeatherService::getCurrent / C++ CService::GetCurrent.

Signature:

getCurrent(coords: Coordinates[], signal?: AbortSignal): Promise<LocationForecast[]>;

Parameters

Parameter

Type

Description

coords

Coordinates[]

signal

AbortSignal

(Optional)

Returns:

Promise<LocationForecast[]>