通过在Backendless中通过API在GeoPoint的半径内搜索,从Users表中检索用户名列表

时间:2016-07-20 15:54:35

标签: android backendless geopoints

在我的Users表中,我创建了一个GeoPoint类型的字段[current_location],用于在他登录应用程序的时间保存用户的当前位置。

我想在“用户”表格中搜索这些Geopoint记录的半径(比如说10英里),并返回该区域内所有用户的用户名。

你能帮帮忙吗?

1 个答案:

答案 0 :(得分:1)

您可以先找到半径为GeoPoints的代码示例:https://backendless.com/documentation/geo/android/geo_radius_based_search.htm 然后找到具有查询的用户,例如“where current_location.objectId IN(foundGeoPointId1,foundGeoPointId2)”。相关文档和代码示例:https://backendless.com/documentation/data/android/data_relations_retrieve.htm