Search code examples
google-mapsgoogle-places-apigoogle-placesgoogle-places-autocomplete

Question regarding the Google Autocomplete query with ZERO_RESULT status


I implemented some kind of address validation using Google autocomplete query and for some of the search requests I getting ZERO_RESULT, and based on the docs it means :

ZERO_RESULTS indicates that the search was successful but returned no results. This may occur if the search was passed a bounds in a remote location.

My question is about the second part of this statement: This may occur if the search was passed a bounds in a remote location.

I couldn't find any more details about this part, what is that mean?

I'm asking because the address that I used to test the validation and return ZERO_RESULT is a valid address, I can actually find it in google maps.


Solution

  • This may occur if the search was passed a bounds in a remote location means that the area the autocomplete was searching didn't have any results that matched the query.

    The bounds would be "the region defined by location and radius".

    This would be more likely to occur with strictbounds.