Google weather API
时间:2010-11-28 来源:ALLI Look for Lost Idylls
http://www.google.com/ig/api?weather=beijing
http://www.google.com/ig/api?weather=,,,30670000,104019996
中文XML天气信息:
http://www.google.com/ig/api?hl=zh-cn&weather=beijing
http://www.google.com/ig/api?hl=zh-cn&weather=,,,30670000,104019996
一个中文天气预报的例子:
<?xml version="1.0"?> <xml_api_reply version="1"> <weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" > <forecast_information> <city data=""/> <postal_code data=""/> <latitude_e6 data="30670000"/> <longitude_e6 data="120019996"/> <forecast_date data="2010-11-28"/> <current_date_time data="2010-11-28 15:00:00 +0000"/> <unit_system data="SI"/> </forecast_information> <current_conditions> <condition data="多云"/> <temp_f data="54"/> <temp_c data="12"/> <humidity data="湿度: 67%"/> <icon data="/ig/images/weather/mostly_cloudy.gif"/> <wind_condition data="风向: 北、风速:2 米/秒"/> </current_conditions> <forecast_conditions> <day_of_week data="周日"/> <low data="10"/> <high data="16"/> <icon data="/ig/images/weather/chance_of_rain.gif"/> <condition data="可能有雨"/> </forecast_conditions> <forecast_conditions> <day_of_week data="周一"/> <low data="11"/> <high data="18"/> <icon data="/ig/images/weather/mostly_sunny.gif"/> <condition data="以晴为主"/> </forecast_conditions> <forecast_conditions> <day_of_week data="周二"/> <low data="12"/> <high data="17"/> <icon data="/ig/images/weather/chance_of_rain.gif"/> <condition data="可能有雨"/> </forecast_conditions> <forecast_conditions> <day_of_week data="周三"/> <low data="9"/> <high data="16"/> <icon data="/ig/images/weather/chance_of_rain.gif"/> <condition data="可能有雨"/> </forecast_conditions> </weather> </xml_api_reply>
相关阅读 更多 +
- 系统休眠文件删除后果 如何删除计算机的休眠文件 2025-04-22
- 站群服务器是什么意思 站群服务器的作用 站群服务器和普通服务器的区别 2025-04-22
- jQuery插件有何作用 jQuery插件的使用方法 2025-04-22
- jQuery插件有哪些种类 简单的jQuery插件实例 2025-04-22
-