【问题标题】:How to obtain more than 5 results from google.maps.places.Autocomplete?如何从 google.maps.places.Autocomplete 获得超过 5 个结果?
【发布时间】:2015-10-24 00:22:20
【问题描述】:

在我的应用程序中,我在 web 视图中显示集成在 html 页面中的 google.maps.places.Autocomplete 视图。在上面输入时,我只得到 5 个下拉结果。如何增加搜索结果?任何人请帮助..

【问题讨论】:

  • 简单的回答是你不能这样做
  • 我已经花了将近 3-4 天,我得到了相同的答案,这是不可能的

标签: android google-maps autocomplete


【解决方案1】:

来自文档:

一个 JSON 响应包含两个根元素:

“状态”包含请求的元数据。请参阅下面的状态代码。

“predictions”包含一个地点数组,其中包含有关 地方。 Places API 最多返回 5 个结果。

来源:https://developers.google.com/maps/documentation/places/web-service/autocomplete#place_autocomplete_responses

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多