MichaelSolati / geofirestore-js

Location-based querying and filtering using Firebase Firestore.
https://geofirestore.com
MIT License
504 stars 58 forks source link

How to change the data structure ? #145

Closed jchapuy closed 4 years ago

jchapuy commented 4 years ago

Is it possible to change the data structure ?

I am using https://pub.dev/packages/geoflutterfire to perform geo based queries in a flutter application, and this package uses another data structure (as show in the screenshot below)

Capture d’écran 2019-10-24 à 16 02 07

I am calling geofirestore-js using <script src="https://unpkg.com/geofirestore/dist/geofirestore.js"></script> on a Wordpress website.

I would like to have a standardized database that can be called from geofirestore-js and geoflutterfire, and this is why I would like to change the data structure of geofirestore-js to match the one I am already using on my app.

How can I accomplish that ?

Thanks for your amazing work !

MichaelSolati commented 4 years ago

This library will likely not follow the same model as "geoflutterfire" as it was originally a fork of geofire, so it follows it's design. However as a dupe of #103 you'll see geofirestore using a more flexible data structure.