【问题标题】:What kind of algorithm is used in Nearby Search requests of Google Places API?Google Places API 的附近搜索请求中使用了哪种算法?
【发布时间】:2020-01-08 12:04:59
【问题描述】:

我正在使用 Google Places API 中的附近搜索请求收集数据。 我知道这些请求最多返回 60 个结果。

但是,我想知道这些结果是如何选择的。这个“附近搜索请求”背后的算法是什么?

https://developers.google.com/places/web-service/search?hl=ja

【问题讨论】:

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


    【解决方案1】:

    Google 在描述rankBy 参数时在linked documentation 中回答了这个问题:

    prominence默认)。此选项根据结果对结果进行排序 重要性。排名将有利于指定范围内的突出位置 区域。一个地方在 Google 中的排名会影响显着性 指数、全球知名度等因素。

    如果您明确指定,您也可以按distance 对结果进行排名。否则,按照上述顺序,默认为prominence

    希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-15
      • 1970-01-01
      • 2020-08-28
      • 1970-01-01
      相关资源
      最近更新 更多