2016-03-28 83 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'