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;
coverageGeometry?: CoverageGeometry;
}): ProgressListener;Parameters
Parameter | Type | Description |
|---|---|---|
{ coords, onComplete, coverageGeometry, } | (not declared) | |
input | { coords: Coordinates[]; onComplete?: (error: GemError, forecasts: LocationForecast[]) => void; coverageGeometry?: CoverageGeometry; } |
input properties:
- coords: Coordinates[]
- Optional onComplete?: (error: GemError, forecasts: LocationForecast[]) => void
- Optional coverageGeometry?: CoverageGeometry
Returns:
ProgressListener for tracking the operation