Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google places details API call return NOT_FOUND for an existing autocomplete reference

I have a problem maybe someone had the same issue.

I am calling google places autocomplete api call.

Then i am presenting the user with the results and he can select the place. Base on the selection i am making places details call and retrieve the details of the place.

My problem is that some cases the details service return NOT_FOUND. the full response looks something like this

    {\n   \"debug_info\" : [],\n   \"html_attributions\" : [],\n   \"status\" 
: \"NOT_FOUND\"\n}\n

Based on google api documentation, NOT_FOUND for place details is: NOT_FOUND indicates that the referenced location was not found in the Places database.

But i got this Reference just 1 sec ago from autocomplete service call!

Anyone has the same problem?

Thanks, Noam

like image 858
Noam Avatar asked Jun 20 '13 01:06

Noam


1 Answers

There are two indexes here, one for the autocomplete suggest and one for the map details. You are seeing the results of the two indexes being updated at different times. If you supply the address in question, I can confirm with the appropriate teams, or you can just wait a couple of days for the indexes to come back into sync.

like image 92
Brett Avatar answered Oct 22 '22 15:10

Brett