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
asked 2 months ago78 views
2 Answers
2
Accepted Answer

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
answered 2 months ago
profile picture
EXPERT
reviewed a month ago
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
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions