这个openweather错误“ 25.00平方度”是什么意思

时间:2019-05-24 13:04:00

标签: openweathermap

我正在尝试确定此openweathermap API错误的原因。我在文档中找不到任何参考。

此请求是成功的:

https://api.openweathermap.org/data/2.5/box/city?bbox=-96.8466%2C37.0905747%2C-92.5829684%2C41.7686%2C9&appid=<apikey>

此请求失败

https://api.openweathermap.org/data/2.5/box/city?bbox=-96.5829684%2C26.5383355%2C-79.37923649999999%2C41.0905747%2C9&appid=<apikey>

响应

{"cod":"400","message":"Requested area is larger than allowed for your account type (25.00 square degrees)"}

我知道它与bbox范围有关,但是我找不到任何文档。我目前正在测试免费订阅。

1 个答案:

答案 0 :(得分:1)

这基本上意味着您要获取的区域大于免费订阅区域允许的区域。 25°²区域表示介于4纬度/经度位置之间的区域,覆盖25度,例如:

An area ranging from 75 to 70 degrees North, and 0 to 5 degrees East (5x5° = 25°)
75°N,0°E ---- 75°N,5°E



70°N,0°E ---- 75°N,5°E