imperiumlabs / GeoFirestore-Android

GeoFirestore for Android - Realtime location queries with Firestore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular geopfirestore and GeoFirestore-Android compatibility

Texiant opened this issue · comments

We have a web application and android application that needed the geofirestore library.
For web, we are using the web version of the geopfirestore library from npm and for Android we use GeoFirestore-Android.
However, it seems the storage structure of the geo hash is different in both cases and are not compatible.
Here is the npm web version structure.
g: {
geohash: string;
geopoint: GeoPoint;
};

Where as in GeoFirestore-Android the structure is
{
g: string
l: GeoPoint
....
}
Here is the documentation for the npm version.
https://geofirestore.com/#geofirestore

Is there any way we can make both compatible?