【问题标题】:How to Get temperature from weather underground day forcast如何从天气地下日预报中获取温度
【发布时间】:2013-10-23 02:25:46
【问题描述】:

我正在使用天气地下 api 来获取 10 天的天气预报,一切正常我可以获取返回的每一天的低温和高温,但在我的应用程序中

我还必须显示当天的确切温度,

举个例子

我必须显示这样的东西

                        **31c**       
                  hi:32c low:29c
                  WEATHER CONDITION : sunny

我可以从服务中获取所有值,我如何检索现在的温度我认为 31 是指当前时刻的温度

【问题讨论】:

    标签: c# asp.net weather-api


    【解决方案1】:

    您熟悉从 Web 服务传递 JSON 吗?如果没有,花时间学习是一件非常值得的事情。

    Weather Underground API 站点从他们的服务返回 JSON blob,其中包含您正在寻找的信息。

    http://www.wunderground.com/weather/api/d/docs

    具体来说,他们在这里提供了预测的详细信息:

    http://www.wunderground.com/weather/api/d/docs?d=data/forecast10day

    并在此处获取当前温度以及其他许多内容:

    http://www.wunderground.com/weather/api/d/docs?d=data/conditions

    【讨论】:

      猜你喜欢
      • 2019-08-08
      • 1970-01-01
      • 1970-01-01
      • 2011-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-28
      • 2012-11-01
      相关资源
      最近更新 更多