how do i use a local location for a weather api using -'jquery,api'

how do i use a local location for a weather api  using -'jquery,api'

I've been stuck on this all day. Here's a link to the codepen for it.

The basic gist is to find out where the user is and to tell them the weather.

I have the code set so we can find the users location. How do I find the weather for this location? I'm not sure how to code that.

Here's the HTML

<link href='' rel='stylesheet' type='text/css'>
<script src="//"></script>
<script src=""></script>
<div class="logo">
  <h1>Local Weather App</h1>

<div class="city">
  <!-- City-->

<div class="state">

<div class="weather">
  <!-- Temperature will go here -->



And here is the jQuery..

$.getJSON('', function(locationIp) {
$.getJSON('' + + '&lon' + locationIp.lon, function(weatherDisplay){
$(".city").text( + ',');


asked Sep 7, 2015 by rajesh
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.