Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用GeoFirestore的Firestore中的数据结构_Java_Android_Firebase_Google Cloud Firestore_Geofirestore - Fatal编程技术网

Java 使用GeoFirestore的Firestore中的数据结构

Java 使用GeoFirestore的Firestore中的数据结构,java,android,firebase,google-cloud-firestore,geofirestore,Java,Android,Firebase,Google Cloud Firestore,Geofirestore,我编写了一个Android应用程序,并使用GeoFirestore 我无法获取30米范围内Firestore用户的列表 我认为我做数据结构是错误的 数据结构: 我是否正确构建了数据结构?我解决了问题 我的数据结构不正确 下图中的正确结构: geoHash-字符串 位置-阵列 数组中的数据类型是数字l存储为地理点还是纬度和经度数组?文件上说is l是一个geopointHi@RLShyam。您可以在上图中看到数据结构。是的,您需要将坐标(纬度和经度)保存到名为“l”的数组中。

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

我无法获取30米范围内Firestore用户的列表

我认为我做数据结构是错误的

数据结构:

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

我解决了问题

我的数据结构不正确

下图中的正确结构:

geoHash-字符串

位置-阵列


数组中的数据类型是数字

l存储为地理点还是纬度和经度数组?文件上说is l是一个geopointHi@RLShyam。您可以在上图中看到数据结构。是的,您需要将坐标(纬度和经度)保存到名为“l”的数组中。