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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ