imperiumlabs / GeoFirestore-Android

GeoFirestore for Android - Realtime location queries with Firestore
MIT License
123 stars 37 forks source link

setLocation with custom fieldNames #40

Open Seeyko opened 4 years ago

Seeyko commented 4 years ago

Hello,

I have a firestore database with already existing GeoPoint under the field : "gpsPoint" When i set a new location with GeoFirestore i use this already existing gpsPoint field in setLocation method. But it also add the "l" field with a GeoPoint wich is a duplication of my "gpsPoint".

Supercaly commented 4 years ago

Yes, currently the library creates his own fields "l" and "h" and use them as indexes for queries; there is no way to make the library use custom fields, but if you want you can implement this feature and make a pull request, it will be appreciated.

betegon commented 4 years ago

Any update on this @Seeyko ?