문제

I want to get the temperature from Yahoo weather API, I am using the following code:

http://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where location%3D"48906"&format=json

I just want to retrieve the temperature and not anything else.

도움이 되었습니까?

해결책

I just want to retrieve the temperature and not anything else.

Its a 2-step process, you need to build the request and then crunch the result to get the temperature.

please see: http://tutorialzine.com/2012/05/weather-forecast-geolocation-jquery/

and

http://www.onextrapixel.com/2011/08/22/adding-weather-to-your-site-with-jquery-and-yql/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top