google places api more than 60 results

此生再无相见时 提交于 2019-12-11 07:43:00

问题


I'm using places text search api to locate the stores of a brand in a city. But there are more than 60 stores for those brands in a city. But through google places api I'm getting only 60 results, which I can get using pagination method(page_token) . Is it possible to access more than 60 results using google places api.

API:: First request :https://maps.googleapis.com/maps/api/place/textsearch/json?query=pizza+hut+in+bangalore&sensor=true&key=


回答1:


It is not possible to access more than 60 results. If you think this would be a useful feature, please submit a Places API - Feature Request.




回答2:


There is no way to get more than 60 results in Places API. Some people tried to file a feature request in Google issue tracker, but Google rejected it with the following comment

Unfortunately Places API is not in a position to return more than 60 results. Besides technical reasons (latency, among others) returning more than 60 results would make the API be more like a database or general-purpose search engine. We'd rather improve search quality so that users don't need to go so far down a long list of results.

https://issuetracker.google.com/issues/35826799



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

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