在 Google Cloud Endpoints 中,如何查询距给定坐标最近的点?

In Google Cloud Endpoints, how is it possible to query the nearest points to a given coordinate?

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

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

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