来自Yahoo Weather API的天气预报 [英] Weather Forcasts from yahoo weather api

查看:108
本文介绍了来自Yahoo Weather API的天气预报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Yahoo Weather API而不是今天和明天获得3-5天或7天的预报?

How to get 3,5 or 7 day forecasts from Yahoo Weather API instead of just today and tomorrow?

http://weather.yahooapis.com/forecastrss?w=location 给出响应中包含今天和明天的天气预报.

http://weather.yahooapis.com/forecastrss?w=location gives response which has weather forecast of just today and tomorrow.

通过什么方式我们可以在响应中做出更多预测?

In what way we can have more forecasts in the response?

谢谢

推荐答案

API解释只有两个参数: WOEID w(其中并以u表示单位(华氏度或摄氏).没有获取天数的参数.

As stated on the API explanation there are only two parameters: w for the WOEID (where on earth id) and u for the unit (Fahrenheit or Celsius). There are no parameters for the number of days to fetch.

我建议切换到具有更多功能的其他天气API .

I recommend to switch to some other weather API with more features.

这篇关于来自Yahoo Weather API的天气预报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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