Search code examples
javaandroidfirebasegoogle-cloud-firestoregeofirestore

Data structure in Firestore using GeoFirestore


I write an Android application and use GeoFirestore.

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.

Data Structure:

enter image description here

Did I build my data structure correctly?


Solution

  • I resolved my problem.

    My structure of data is not correct.

    The correct structure in the picture below:

    enter image description here

    geoHash - String

    location - Array

    In array type of data is Number.