如何获取天气在当前位置 [英] How to get weather at current location

查看:213
本文介绍了如何获取天气在当前位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的复制:

获取当前位置的天气更新?

<一个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.

我的问题:

  1. 如何获得全天候使用雅虎天气API

  1. 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

免费天气预报REST API

*的注意:的*当地的天气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屋!

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