getRealtimeWeatherByLocation method
Fetch Realtime API data by location.
Implementation
Future<RealtimeWeather> getRealtimeWeatherByLocation(
double latitude, double longitude,
{bool airQualityIndex = false}) async {
Map<String, dynamic>? jsonResponse =
await _sendRequest<Map<String, dynamic>>(APIType.realtime,
latitude: latitude,
longitude: longitude,
airQualityIndex: airQualityIndex);
return RealtimeWeather(jsonResponse!);
}