我上周联系了Open Weather Map支持团队,但他们的论坛已经死了。希望在这里能得到一些帮助。
我目前正在为android构建一个天气应用程序。
当我发送英国伯明翰的lat和long时,它们是lat 52.4447615: lon -1.9292798
它将越南作为一个完全不同的lat lang的国家?我知道开放的天气地图是非常流行的,所以我一定是构建了错误的url或
某物。
http://api.openweathermap.org/data/2.5/weather?q=lat=52.4447462&lon=-1.9292798&units=metric会非常感谢你的帮助。谢谢,马特
发布于 2015-02-22 02:40:23
似乎问题出在单位的参数上。只要摆脱它,它就会起作用:
http://api.openweathermap.org/data/2.5/weather?lat=52.4447615&lon=-1.9292798请注意,我没有通读API文档,只是从他们的概述页面开始的:http://openweathermap.org/current。
发布于 2015-09-11 18:55:41
试试这个: [openweathermap.org]1
您还可以使用Geocoder从坐标中获取城市名称。
https://stackoverflow.com/questions/28649585
复制相似问题