Google Places API : next_page_token error

后端 未结 5 1942
[愿得一人]
[愿得一人] 2021-02-19 13:39

I\'m gathering information on the location of stores. The search is:



        
5条回答
  •  Happy的楠姐
    2021-02-19 13:54

    It has something to do with the timing between the requests, if you run them immediately one after the other, the pagetoken isn't valid yet, you have to wait a few seconds between consecutive requests.

    This is because google's license terms don't allow you to fetch all the results at once and return them all at once to the user. You should have a user action asking for more results, which adds a delay of a couple of seconds.

提交回复
热议问题