【问题标题】:Question regarding the Google Autocomplete query with ZERO_RESULT status关于具有 ZERO_RESULT 状态的 Google 自动完成查询的问题
【发布时间】:2020-05-18 15:14:50
【问题描述】:

我使用 Google 自动完成查询实现了某种地址验证,对于一些搜索请求,我得到了 ZERO_RESULT,根据文档,这意味着:

ZERO_RESULTS 表示搜索成功但未返回任何结果。如果搜索超出了远程位置的范围,则可能会发生这种情况。

我的问题是关于本声明的第二部分:This may occur if the search was passed a bounds in a remote location.

我找不到关于这部分的更多细节,这是什么意思?

我问是因为我用来测试验证并返回 ZERO_RESULT 的地址是有效地址,我实际上可以在谷歌地图中找到它。

【问题讨论】:

    标签: google-maps google-places-api google-places googleplacesautocomplete


    【解决方案1】:

    This may occur if the search was passed a bounds in a remote location 表示自动完成正在搜索的区域没有任何与查询匹配的结果。

    边界为"the region defined by location and radius"

    strictbounds 更有可能发生这种情况。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-17
      相关资源
      最近更新 更多