2016-03-28 84 views
6

正在嘗試查詢YQL console。這一個正常工作:通過API獲取雅虎天氣攝氏度

select * from weather.forecast where woeid=1989965 

但我想在公制(攝氏)值,所以我用這個查詢:

select * from weather.forecast where woeid=1989965 and unit='c' 

我得到一個空的結果:

{ 
"query": { 
    "count": 0, 
    "created": "2016-03-28T01:46:08Z", 
    "lang": "ru", 
    "results": null 
} 
} 

我可以自己轉換值,但我希望我可以使它開箱即用...

回答

7

今天我發現,u ='c'是工作。所以,我自己的問題的答案是:

select * from weather.forecast where woeid=1989965 and u='c'