0

我正在构建一个允许按 IP 地址搜索的 Weather 类。我正在尝试将 Wunderground API 实现为要使用的选项之一。但是,我似乎找不到使用 IP 地址查询 API 的方法。我试过这个:autocomplete.wunderground.com/aq?query={IP ADDRESS HERE}- 但正如你所看到的,它没有找到任何结果。关于这个问题的任何提示?

谢谢!

4

2 回答 2

0

我建议您改用 World Weather Online API。它易于使用,具有易于解析的面向公众的 JSON 响应。您只需为每个查询提供您的 API 密钥,它支持 IP 地址查询、纬度、经度、区域设置名称等。试试看人。在这里找到它

于 2013-01-11T23:20:26.277 回答
0

尝试http://api.wunderground.com/api/Your_Key/forecast/geolookup/conditions/q/autoip.json?geo_ip=Your_IP,而不是。

有关详细信息,请参阅链接:http ://www.wunderground.com/weather/api/d/docs?d=data/index 。

于 2013-02-26T01:45:27.890 回答