文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Google weather API

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>
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载