google places api fetch more than 60 results

纵饮孤独 提交于 2019-12-25 09:29:05

问题


I'm currently working with google places api to fetch nightclubs in the given city, I have evn added my credit card to API details as per you documentation I was supposed to get 150K hits per day. when I hit the google places api it returns only 60 places in 3 pages. Please assits how can I can more results from API query.


回答1:


It is not possible to get more than 60 results from places search request. This behavior is well documented.

By default, each Nearby Search or Text Search returns up to 20 establishment results per query; however, each search can return as many as 60 results, split across three pages.

https://developers.google.com/places/web-service/search#PlaceSearchPaging

Adding more results might open a possibility for data scraping that is prohibited by Terms of Service [1], so it is very unlikely that Google increases the number of items in the response.

[1] https://developers.google.com/maps/terms#section_10_4

No creation or augmentation of data sets based on Google’s Content or Services. You will not use Google’s Content or Services to create or augment your own mapping-related dataset (or that of a third party), including a mapping or navigation dataset, business listings database, mailing list, or telemarketing list.



来源:https://stackoverflow.com/questions/45106501/google-places-api-fetch-more-than-60-results

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