WeatherApiService

Service for fetching weather data from the Open-Meteo API.

Fetches the weather data for the given location And creates a WeatherData object from the response using Ktor client.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
suspend fun fetchWeather(location: Location): WeatherData

Fetch the weather data for the given location.