Google places API returning only 5 results

こ雲淡風輕ζ 提交于 2019-12-03 01:23:19
Joel Fernandes

From the documentation:

A JSON response contains two root elements:

"status" contains metadata on the request. See Status Codes below.

"predictions" contains an array of places, with information about the place. The Places API returns up to 5 results.

Source: https://developers.google.com/places/web-service/autocomplete#place_autocomplete_responses

Google specifies that they only give up to 5 results for place API. You can check below image where google accepts this. Google Place API Doc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!