所有可能的Google天气API“条件”的列表

时间:2009-10-14 01:54:40

标签: google-api weather-api

任何人都知道谷歌API会推出的所有天气条件?

我必须将我的图标与预测相匹配,我找不到条件列表。

6 个答案:

答案 0 :(得分:10)

我发现这个列表看起来比我见过的任何其他列表更完整

http://dennisdel.com/content/conditions.xml 任何时候都不可用(2016年1月)

<conditions>
 <type>PARTLY SUNNY</type>
 <type>SCATTERED THUNDERSTORMS</type>
 <type>SHOWERS</type>
 <type>SCATTERED SHOWERS</type>
 <type>RAIN AND SNOW</type>
 <type>OVERCAST</type>
 <type>LIGHT SNOW</type>
 <type>FREEZING DRIZZLE</type>
 <type>CHANCE OF RAIN</type>
 <type>SUNNY</type>
 <type>CLEAR</type>
 <type>MOSTLY SUNNY</type>
 <type>PARTLY CLOUDY</type>
 <type>MOSTLY CLOUDY</type>
 <type>CHANCE OF STORM</type>
 <type>RAIN</type>
 <type>CHANCE OF SNOW</type>
 <type>CLOUDY</type>
 <type>MIST</type>
 <type>STORM</type>
 <type>THUNDERSTORM</type>
 <type>CHANCE OF TSTORM</type>
 <type>SLEET</type>
 <type>SNOW</type>
 <type>ICY</type>
 <type>DUST</type>
 <type>FOG</type>
 <type>SMOKE</type>
 <type>HAZE</type>
 <type>FLURRIES</type>
 <type>LIGHT RAIN</type>
 <type>SNOW SHOWERS</type>
 <type>ICE/SNOW</type>
 <type>WINDY</type>
 <type>SCATTERED SNOW SHOWERS</type>
</conditions>

修改 这里有一个新的基于原始列表:
https://gist.github.com/806934

将其从列表

中删除
<type>ICE/SNOW</type>
<type>WINDY</type>
<type>SCATTERED SNOW SHOWERS</type>

并补充说:

<type>HAIL</type>

无论如何都可能不会伤害所有这些

答案 1 :(得分:5)

提到了这一点:http://www.blindmotion.com/?p=73虽然它可能不完整,因为它不是谷歌发布的东西。它可能涵盖了大约99%的案例,除非谷歌员工随机增强和发布天气API。

编辑:

blindmotion.com出现,网络存档包含页面内容:http://web.archive.org/web/20111001141159/http://www.blindmotion.com/2009/03/google-weather-api-images/。 (注意,从2009年开始)

https://gist.github.com/bzerangue/806934(由Vijay撰写,在下面的答案中列出)可能是更新的列表

答案 2 :(得分:5)

这个链接对我来说是破碎的。这是我在另一个论坛上找到的列表:

"Clear 
Cloudy 
Fog
Haze 
Light Rain
Mostly Cloudy 
Overcast 
Partly Cloudy
Rain 
Rain Showers 
Showers
Thunderstorm 
Chance of Showers 
Chance of Snow 
Chance of Storm 
Mostly Sunny
Partly Sunny 
Scattered Showers 
Sunny"

答案 3 :(得分:1)

这是我能找到的最佳列表:http://www.blindmotion.com/?p=73

您可能需要考虑正式支持和记录的备用API。 Yahoo!的Weather RSS feed是一个方便易用的API。我将National Weather Service's API用于我的一个项目,因为我需要在未来的某个特定时间范围内提取预测,并且它允许我以相当简单的方式执行此操作。

答案 4 :(得分:1)

我编译了这个,它拥有一切,到目前为止我认为我没有错过任何东西。

Clear
Sunny
Partly Sunny
Mostly Sunny
Scattered Thunderstorms
Showers
Scattered Showers
Rain and Snow
Overcast
Light Snow
Freezing Drizzle
Chance of Rain
Partly Cloudy
Mostly Cloudy
Chance of Storm
Rain
Chance of Snow
Cloudy
Mist
Storm
Thunderstorm
Chance of TStorm
Sleet
Snow
Icy
Dust
Fog
Smoke
Haze
Flurries
Light Rain
Snow Showers
Hail

来源:https://gist.github.com/806934

答案 5 :(得分:0)

更多:雾,尘,冰冷,烟雾,雨夹雪