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
preguntada hace 3 meses86 visualizaciones
2 Respuestas
2
Respuesta aceptada

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
respondido hace 3 meses
profile picture
EXPERTO
revisado hace 2 meses
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
respondido hace 3 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas