1

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?

Yury Matatov
  • 805
  • 3
  • 11
  • 23

1 Answers1

2

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.

Yury Matatov
  • 805
  • 3
  • 11
  • 23
  • is l stored as geopoint or array of latitude and longitude? the documentation says is l is a geopoint – RL Shyam Apr 03 '20 at 06:22
  • Hi @RLShyam. You can see the data structure in an image above. Yes, you need to save coordinates (latitude and longitude) to an array with the name "l". – Yury Matatov Apr 03 '20 at 12:44