assets/script.js
// requestForecast - use openweather onecall api to get current forecast, 5 day forecast and uv
use openweather onecall api to get current forecast, 5 day forecast and uv
use openweather onecall api to get current forecast 5 day forecast and uv
function requestForecast(lat, lon) {
    var forecastURL = `https://api.openweathermap.org/data/2.5/onecall?lat=${lat}&lon=${lon}&units=imperial&appid=${apiKeyMap}`;
    $.ajax({
        url: forecastURL,
        method: "GET"
        })
        .then(function(response) {
            displayWeather(response);
            displayForecast(response);
        });
}
function requestForecast ( lat , lon ) { var forecastURL = ` ${ lat } ${ lon } ${ apiKeyMap } ` ; $ . ajax ( { url : forecastURL , method : "GET" } ) . then ( function ( response ) { displayWeather ( response ) ; displayForecast ( response ) ; } ) ; }
requestForecast - use openweather onecall api to get current forecast, 5 day forecast and uv
requestForecast - use openweather onecall api to get current forecast 5 day forecast and uv
// console.log(forecastURL); // run ajax query to openweather onecall API // console.log(response);