0
Weather Report
I want to create weather report with jquery and Json Api
5 Réponses
+ 3
Do it, don't ask for authorization :P
Anyway, maybe can you start from there:
https://openweathermap.org/api
+ 2
Use the geolocation object feature of error event handling to get more information about the cause of not working:
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/Using_geolocation
http://mdn.beonex.com/en/Using_geolocation.html
+ 1
$(document).ready(function(){
if(navigator.geolocation){
navigator.geolocation.getCurrentPosition(function(){
$("#data").html("latitude: " + position.coords.latitude + "<br>longitude: " + position.coords.longitude);
});
}
var api = "http://api.openweathermap.org/data/2.5/weather?lat=35&lon=139&appid=b1b15e88fa797225412429c1c50c122a1";
$.getJSON(api, function(data){
alert()
});
});
am getting error
0
nice bro let me try
0
thanks brother