这个开放天气错误“25.00 平方度”是什么意思
What does this openweather error "25.00 square degrees" mean
我正在尝试确定此 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 范围有关,但我找不到任何文档。我目前正在测试免费订阅。
这基本上意味着您正在获取的区域大于免费订阅区域允许的区域。 25°² 区域表示 4 lat/lng 位置之间的区域覆盖 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
我正在尝试确定此 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 范围有关,但我找不到任何文档。我目前正在测试免费订阅。
这基本上意味着您正在获取的区域大于免费订阅区域允许的区域。 25°² 区域表示 4 lat/lng 位置之间的区域覆盖 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