야후 날씨를 쓰기 위해서는 WOEID(Where On Earth ID)라는게 필요하다.
이 WOEID가 문서형태로 나와있는 데이터가 없어 찾기가 힘들다.
하지만 전세계 도시의 WOEID를 SQL문과 거의 유사한 YQL(Yahoo Query Language)를 이용해서 해당 도시의 위도, 경도 정보도 알아낼 수 있다.
아래 경로에서 seoul을 다른 도시명으로 바꾸면 응용이 가능하다.
http://query.yahooapis.com/v1/public/yql?q=select * from geo.places where text="seoul"&format=xml
서울의 WOEID는 1132599 다.
서울의 날씨 정보를 알아오려면 아래 경로대로 사용하면 된다.
http://weather.yahooapis.com/forecastrss?w=1132599

Current Conditions:
Fair, 72 F
Forecast:
Tue - Partly Cloudy. High: 72 Low: 59
Wed - AM Showers. High: 61 Low: 43
Full Forecast at Yahoo! Weather
(provided by The Weather Channel)
하지만 온도표시가 F(화씨)로 표현된다.
온도표시를 C(섭씨)로 바꾸려면 위 경로의 마지막에 &u=c 를 붙여주면 된다.
http://weather.yahooapis.com/forecastrss?w=1132599&u=c
Conditions for Seoul, KR at 12:59 pm KST

Current Conditions:
Fair, 22 C
Forecast:
Tue - Partly Cloudy. High: 22 Low: 15
Wed - AM Showers. High: 16 Low: 6
Full Forecast at Yahoo! Weather
(provided by The Weather Channel)