DarshanGowda0 / GeoFlutterFire

:fire:GeoFlutterFire:fire: is an open-source library that allows you to store and query firestore documents based on their geographic location.
https://youtu.be/MYHVyl-juUk
MIT License
306 stars 261 forks source link

Is data structure compatible with GeoFireStore? #123

Open giorgio79 opened 3 years ago

giorgio79 commented 3 years ago

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

prascuna commented 3 years ago

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

cybertheory commented 3 years ago

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.