如何获取天气在当前位置 [英] How to get weather at current location
问题描述
可能的复制:
<一个href="http://stackoverflow.com/questions/6992223/how-can-i-get-the-weather-in-current-location-from-latitude-and-longitude">How我可以得到天气的纬度和经度的当前位置?
我开发一个应用程序,它可以在当前位置更新的天气。我用Google搜索,发现如何使用谷歌API。但现在谷歌API不缴费,我用雅虎的天气代替。
I'm developing an app, it can update weather at current location. I have googled and found how to use Google API. But now Google API not avaiable, and i used Yahoo weather instead.
我的问题:
-
如何获得全天候使用雅虎天气API
How to get weather use Yahoo Weather API
教程或来源$ C $ C
Tutorial or Source Code
感谢先进的。
推荐答案
我亲自使用这个API它的自由,你可以检索的天气预报通过邮寄code,拉链code或经度和纬度任何位置
I have personally used this API its free and you can retrieve weather forecast for any location via postcode, zipcode or latitude and longitude
*的注意:的*当地的天气API返回的XML,JSON和CSV格式的气象数据,包括如温度,precipitation(降雨),天气描述,天气图标和风力的天气要素速度。
*NOTE:*The Local Weather API returns weather data in XML, JSON and CSV format and contains weather elements like temperature, precipitation (rainfall), weather description, weather icon and wind speed.
这篇关于如何获取天气在当前位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!