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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南