Weather forecast from WOEID (using YQL or rss) in javascript?
-
29-10-2019 - |
문제
Is there any way of getting the weather forecast from woeid in javascript?
I tried using rss feed of yahoo, but couldn't get it to work. here is my code
var url = "http://weather.yahooapis.com/forecastrss?w=" + encodeURIComponent('WOEID here');
$.ajax({
url: url,
dataType: 'jsonp',
jsonpCallback: function(data) { console.log(data); },
success: function(data) { alert("success"); }
});
Any suggestions?
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow