Home > @magiclane/maps-sdk > WeatherService > getHourlyForecast
WeatherService.getHourlyForecast() method
Retrieves hourly weather forecast for specified coordinates.
Signature:
static getHourlyForecast(input: {
hours: number;
coords: Coordinates[];
onComplete?: (error: GemError, forecasts: LocationForecast[]) => void;
}): ProgressListener;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
{ hours, coords, onComplete, } |
(not declared) | |
|
input |
{ hours: number; coords: Coordinates[]; onComplete?: (error: GemError, forecasts: LocationForecast[]) => void; } |
input properties:
- hours: number
- coords: Coordinates[]
- Optional onComplete?: (error: GemError, forecasts: LocationForecast[]) => void
Returns:
ProgressListener for tracking the operation