【问题标题】:how to get 5-day weather forecast by using woeid如何使用woeid获取5天的天气预报
【发布时间】:2012-02-03 06:24:06
【问题描述】:

我通过 WOEID 通过链接 http://weather.yahooapis.com/forecastrss?w=20079323 从 yahoo 获取天气,这没问题,但 xml 文件仅返回 2 个预测。那么,如何使用 WOEID 获取 5 天的天气预报。

【问题讨论】:

    标签: yahoo weather


    【解决方案1】:

    查看此链接。这可能会对您有所帮助,我的应用程序已通过此链接运行。

    Yahoo Weather API

    【讨论】:

      【解决方案2】:

      这似乎不可能,请参阅Weather API Reference。只有 2 个选项(温度单位和 WOEID)

      【讨论】:

        【解决方案3】:

        现在还不晚……

        我不知道这是否正是您要查找的内容,但请使用此 URL:

        http://xml.weather.yahoo.com/forecastrss/20079323_c.xml

        _c 替换为_f,您将获得华氏单位。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2012-03-13
          • 2021-05-01
          • 2013-02-28
          • 1970-01-01
          • 2019-06-10
          • 1970-01-01
          • 1970-01-01
          • 2012-11-01
          相关资源
          最近更新 更多