imperiumlabs / GeoFirestore-Android

GeoFirestore for Android - Realtime location queries with Firestore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setLocation with custom fieldNames

Seeyko opened this issue · comments

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".

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.

Any update on this @Seeyko ?