Geocoding api return 400 error 'FilterBBox' must have more southwesterly position before more northeasterly position.

0

Hi I'm getting a 400 bad request error with POST /places/v0/indexes/<indexname>/search/suggestions with the following request playload:

{
"Text":"Auckland","MaxResults":10,
 "FilterCountries":null,
 "FilterBBox":[166.2890625,-47.4578085307503,-169.096590380423,-34.1105560631211]
}

I initially tried [166.2890625,-47.4578085307503,190.903409619577,-34.1105560631211] and that returned another error 'FilterBBox[2]' must be between -180 and 180. Thus I had convert 190.903409619577 to -169.096590380423.

Please advise.

TKP
已提问 3 个月前86 查看次数
2 回答
2
已接受的回答

Amazon Location Service currently has a limitation regarding a BBox that crosses the 180 degree mark. It looks like your BBox is the country of NZ. Can you use the FilterCountries option instead?

AWS
awszac
已回答 3 个月前
profile picture
专家
已审核 2 个月前
0

Thanks for your reply. Our application allows user to choose the map bounds. However the targetted usages will be in New Zealand and Australia so I will work around this by clamping to 180 degree max for now (which is sufficient to cover NZ) .

Is this limitation documented somewhere that I have missed?

TKP
已回答 3 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容