get-weather
Documentation / interface/get-weather
getWeatherForClientIP()​
function getWeatherForClientIP(): Promise<WeatherForecast[]>;
Defined in: interface/get-weather.js:84
Fetches the weather forecast for the client's current IP address.
Returns​
Promise
<WeatherForecast
[]>
getWeatherForecast()​
function getWeatherForecast(latitude: number, longitude: number): Promise<WeatherForecast[]>;
Defined in: interface/get-weather.js:9
Fetches open-meteo API weather forecast for latitude and longitude and code symbol.
Parameters​
Parameter | Type | Description |
---|---|---|
|
| |
|
|
Returns​
Promise
<WeatherForecast
[]>