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

WeatherRestService.getHourly() method

Hourly forecast (hours steps) for each coordinate. Mirrors WeatherService::getHourly / C++ CService::GetHourlyForecast.

Signature:

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

Parameters

Parameter

Type

Description

hours

number

coords

Coordinates[]

signal

AbortSignal

(Optional)

Returns:

Promise<LocationForecast[]>