Obtaining more than 20 results with Google Places API

前端 未结 6 1713
Happy的楠姐
Happy的楠姐 2020-12-23 20:16

I want to develop a map application which will display the banks near a given place.

I use the Places library to search and everytime it just return 20 results. What

6条回答
  •  自闭症患者
    2020-12-23 20:51

    In response to Eduardo, Google did add that now, but the Places documentation also states:

    The maximum number of results that can be returned is 60.

    so it still has a cap. also FYI, there is a delay for when the "next_page_token" will become valid, as Google states:

    There is a short delay between when a next_page_token is issued, and when it will become valid.

    and here is the official Places API docs:

    https://developers.google.com/places/documentation/

提交回复
热议问题