Home > @magiclane/maps-sdk > WeatherRestService

WeatherRestService class

Signature:

export declare class WeatherRestService 

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the WeatherRestService class

Methods

Method

Modifiers

Description

cancelAll()

Abort every in-flight request started by this service.

getCurrent(coords, signal)

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

getDaily(days, coords, signal)

Daily forecast (days steps) for each coordinate. Mirrors WeatherService::getDaily / C++ CService::GetDailyForecast.

getForecast(coords, signal)

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

getHourly(hours, coords, signal)

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