fetchWeather

suspend fun fetchWeather(location: Location): WeatherData

Fetch the weather data for the given location.

Return

WeatherData object containing the weather data.

Parameters

location

The location to fetch the weather data for.