title: getting "Uncaught TypeError: Cannot read property 'coords' of undefined"
body: <p>i have the following code</p>
  
  <pre><code>function loadAQI(cityCoords){
          var latlng = cityCoords.coords.latitude +"&amp;lon="+ cityCoords.coords.longitude;
  </code></pre>
  
  <p>i am trying to make my API more dynamic with latitudes and longitudes but i keep getting this error:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'coords' of undefined
  
  $(document).ready(function(){
          loadAQI();
          $("a.city").bind("click",function(){
              loadCity($(this).html());
          });
  </code></pre>
  
  <p>this is where i call the loadAQI function
              });</p>