如何获得使用wunderground特定日期的气象资料 [英] How to get weather data for specific date using wunderground

查看:717
本文介绍了如何获得使用wunderground特定日期的气象资料的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次用这个 wunderground 。我希望得到的气象资料按下列情况下

This is the first time I am using this wunderground.I want to get weather data as per following cases

请注意:今日日期:2014年2月3日

Note : Today Date :2014-02-03


  1. 我想从2014年1月21日至2014-01-31所以它获取的气象资料来历史数据。

  1. I want to get weather data from 2014-01-21 to 2014-01-31 so it's comes to history data.

我想获得的气象资料,从2014-02-05到2014-02-07。所以它涉及到预测数据。

I want to get weather data from 2014-02-05 to 2014-02-07. so it's comes to forecast data.

我搜索 wunderGround 的文件,但我没有找到论据,使API调用具体日期。

I searched wunderGround documentation, but I didn't found arguments for making API call for specific dates.

我发现历史和预测data.but我以下链接不知道如何指定在请求特定日期的限制。

I found the following links for both history and forecast data.but I don't know How to specify particular date limits in the request.

历史链接:

<$c$c>http://api.wunderground.com/api/4d474af3da6c8f65/history_20140121/q/CA/bangalore.json

预测链接:

http://api.wunderground.com/api/4d474af3da6c8f65/forecast/q/CA/bangalore.json

预测:

我能不能指定日期,这就是为什么我无法从 2014-02-05 到 2014年4月7日

I can't able to specify the date,that's why I am not able to get the data for specific dates.What I want,data from 2014-02-05 to 2014-04-07.

历史

我不能能够API调用来指定结束日期。

I can't able to specify endDate in api call.

谁能帮助我。

感谢。

推荐答案

在地下气象历史API(的文档)仅适用于在同一时间一个日期。该解决方案是构建code进入一个循环,并增加在每次迭代的日期。您还仅限于每分钟10电话和每天500对无铅封装,所以如果你需要快速的结果还是有很多的结果,这将没有帮助,但他们确实有的提供的成本 premium包。

The Weather Underground history API (docs) is only available for a single date at a time. The solution is to build your code into a loop and increment the date in each iteration. You are also limited to 10 calls per minute and 500 per day on the free package so this won't help if you need results quickly or a lot of results, but they do have premium packages available at a cost.

这篇关于如何获得使用wunderground特定日期的气象资料的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆