GeoFlutterFire icon indicating copy to clipboard operation
GeoFlutterFire copied to clipboard

Is data structure compatible with GeoFireStore?

Open giorgio79 opened this issue 4 years ago • 2 comments

I just found https://geofirestore.com/ and wondered if geoflutterfire can be changed to geofirestore if one would switch to Cloud functions.

giorgio79 avatar Oct 01 '20 21:10 giorgio79

I'm using https://github.com/codediodeio/geofirex on the cloud functions' side calculating some distances between points and it seems fine. I don't know about the lib you're mentioning, I'd check that they're relying on Firestore's Geopoint and also create a geohash and it should be ok, but maybe it's better to do your own testing first

prascuna avatar Nov 28 '20 09:11 prascuna

No this is not the case! GeoFlutterFire data structure uses 'location' for it's location map, where as GeoFirestore uses the field name 'g' for its map. GeoFirestore says to use it to insert data as well as to read it.

cybertheory avatar Aug 03 '21 23:08 cybertheory