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