python - 有没有提供用经度纬度查询天气的服务?
阿神
阿神 2017-04-17 13:51:42
0
3
905

有没有提供用经度纬度查询天气的服务?

或者有那些比较好的实现方式?

阿神
阿神

闭关修行中......

reply all(3)
左手右手慢动作

You can check the city first, and then check the weather based on the city.
For example, you can query a city through Baidu Map API or Google Map API and then query the weather through China Weather Network API.


Weather Underground
Example: http://api.wunderground.com/auto/wui/geo/GeoLookupXML/index.xml?query=37.76834106,-122.39418793
Source

迷茫

Available through Yahoo Weather. Yahoo Weather supports getting woeid from longitude and latitude (this is a region ID dedicated to Yahoo Weather), and then you can use woeid to get the weather.

小葫芦

Basically all current APIs support it. Know the weather by heart, gentle weather and the like

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!