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