使用GeoFirestore的Firestore中的数据结构 [英] Data structure in Firestore using GeoFirestore

查看:121
本文介绍了使用GeoFirestore的Firestore中的数据结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个Android应用程序,并使用 GeoFirestore .

I write an Android application and use GeoFirestore.

我无法从30米范围内的 Firestore 中获得用户的列表.

I can't to get a list with users from Firestore within a range 30 meters.

我认为建立数据结构是错误的.

I think that I wrong to make a structure of data.

数据结构:

我是否正确构建了数据结构?

Did I build my data structure correctly?

推荐答案

我解决了我的问题.

我的数据结构不正确.

下图中的正确结构:

geoHash -字符串

位置-数组

数组中,数据类型为数字.

这篇关于使用GeoFirestore的Firestore中的数据结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆