在Google地图API中获得最多(超过20个)的结果 [英] Get maximum (more than 20) results in Google map API

查看:153
本文介绍了在Google地图API中获得最多(超过20个)的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Google maps API版本3 和文字搜索使用javascript的地点。

i am using Google maps API version 3 and text search for places using javascript.

但我只得到20个结果。

But I only get 20 results.

我如何获得20个以上的结果(比如说大约100或200)?

How do I get more than 20 results (say, around 100 or 200)?

推荐答案

默认值是20,但最多可以有60个。但是,它们将位于后续页面上,请参阅这里的文档示例这里了解如何处理所需的分页。

The default is 20, but there can be as much as 60. However they'll be on subsequent pages, see the documentation here and the example here for how to handle the pagination that's required.

这篇关于在Google地图API中获得最多(超过20个)的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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