Amadeus 兴趣点搜索 API:收到无效数据,消息沙箱坐标超出允许框

Amadeus Point of Interest Search API: Received INVALID DATA RECEIVED with message Sandbox coordinates out of the allowed box

在测试环境中使用 Amadeus Java SDK 兴趣点 API 时,我提供了从城市搜索 API 收到的经度和纬度,但我得到 "Invalid Data Received" 详细信息为 "Sandbox coordinates out of the allowed box"。我在直接从 Amadeus Self Service API's.

尝试时收到了类似的回复

下面是请求 URL 和收到的响应:-

请求

https://test.api.amadeus.com/v1/reference-data/locations/pois?latitude=77.10309&longitude=28.5665&radius=1&page%5Blimit%5D=10&page%5Boffset%5D=0

回应

{
  "errors": [
    {
      "status": 400,
      "code": 4926,
      "title": "INVALID DATA RECEIVED",
      "detail": "Sandbox coordinates out of the allowed box",
      "source": {
        "parameters": [
          "latitude",
          "longitude",
          "radius"
        ]
      }
    }
  ]
}

这是因为您使用的是免费但有限的测试环境(与生产相比,每个月 API 的调用次数有限,数据集有限)。

您可以在测试中找到here the data available in test for all our APIs and here兴趣点支持的城市列表。

请注意,除了数量有限的城市外,您最多只能获得 10 个兴趣点。