Tua*_* Vu 9 android weather yahoo-weather-api
可能重复:
我正在开发一个应用程序,它可以更新当前位置的天气.我用Google搜索并找到了如何使用Google API.但现在Google API无法使用,而我使用的是雅虎天气.
我的问题:
如何获取天气使用Yahoo Weather API
教程或源代码
谢谢高级.
Aur*_*urA 13
让我告诉你你不应该使用什么..谷歌API(它已被停止)
http://thenextweb.com/google/2012/08/28/did-google-just-quietly-kill-private-weather-api/
然后,你有其他选择,如
雅虎天气API
http://developer.yahoo.com/weather/
Run Code Online (Sandbox Code Playgroud)
例如..要获得法国巴黎的摄氏度和其他公制单位的预测:http://weather.yahooapis.com/forecastrss? w = 615702&u = c
对于其他示例,请访问链接 http://developer.yahoo.com/weather/#examples
WunderGround Weather API
http://www.wunderground.com/weather/api/
Run Code Online (Sandbox Code Playgroud)
另一个Good Alternate是Open Weather Map API,它通过仅传递位置的纬度和经度来支持JSON输出.
http://openweathermap.org/wiki/API/JSON_API
Run Code Online (Sandbox Code Playgroud)
我个人免费使用此API,您可以通过邮政编码,邮政编码或纬度和经度检索任何位置的天气预报
**注意:**Local Weather API以XML,JSON和CSV格式返回天气数据,包含天气因素,如温度,降水(降雨量),天气描述,天气图标和风速.
**更新:**www.worldweatheronline.com/ api不再免费.
试试这些
归档时间: |
|
查看次数: |
52396 次 |
最近记录: |