google place api超过60个结果 [英] google places api more than 60 results

查看:117
本文介绍了google place api超过60个结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用地点文本搜索api来查找城市中某个品牌的商店.但是,在一个城市中,有超过60家这些品牌的商店.但是通过google place api我只能得到60个结果,可以使用分页方法(page_token)获得. 是否可以使用Google Places API访问60多个结果.

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 :: 首次请求:https://maps.googleapis.com/maps/api/place/textsearch/json?query = pizza + hut + in + bangalore& sensor = true& key =

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

推荐答案

在Places API中无法获得60个以上的结果.有人试图在Google问题跟踪器中提出功能请求,但Google拒绝了,并附有以下评论

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

很遗憾,Places API不能返回60个以上的结果. 除了技术原因(延迟等)之外,返回60多个结果将使API更像数据库或通用搜索引擎.我们宁愿提高搜索质量,以使用户不必走太长的搜索结果清单.

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

这篇关于google place api超过60个结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆