【问题标题】:In Google Cloud Endpoints, how is it possible to query the nearest points to a given coordinate?在 Google Cloud Endpoints 中,如何查询到给定坐标的最近点?
【发布时间】:2015-01-06 11:19:57
【问题描述】:

在 MongoDB 中,对于坐标 (lat, lng),我们可以描述一个半径为 R 的圆,并使用centerSphere 方法确定该圆内的点。

如果不使用 MongoDB,是否可以仅使用 Google Cloud DataStore API 有效地查询这些点?

【问题讨论】:

    标签: google-app-engine google-cloud-storage google-cloud-endpoints


    【解决方案1】:

    考虑使用 AppEngine 搜索服务。您需要首先将您的内容索引到“文档”中,然后您可以使用地理点查​​询来查找适当的数据。 https://cloud.google.com/appengine/docs/java/search/query_strings#Java_Queries_on_geopoint_fields

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-30
      • 2013-06-28
      • 1970-01-01
      • 2018-07-30
      • 2017-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多