title: OpenWeather API UV Index
body: <p>Using OpenWeather API, I need to find the UV Index using latitude and longitude. I need to figure out how to get the information from the queryURL request to be able to display the value on my html file. </p>
  
  <p>I know my code is missing something, just not sure what it is. Right now I am using a "forecast" queryURL and see the Lat/Lon of the city I want to search, I just need to use that information to create another request. When I run my code I get the following error: "response.city.coord is not a function". This is the code I have so far:</p>
  
  <pre><code>    var lat = "response.city.coord"("lat");
      var lon = "response.city.coord"("lon");
  
      var apiKey1 = "ada1f715672a438e9b9acaa7ea0e930b";
      var queryURL2 = `https://api.openweathermap.org/data/2.5/uvi?appid=${apiKey1}&amp;lat=${lat}&amp;lon=${lon}`;
  
      $.ajax({
          url: queryURL2,
          method: "GET",
      }).then(function (res) {
          var uvI = res.value;
          $(".uvIndex").text("UV Index: " + uvI);
      });
  </code></pre>