codediodeio / geofirex

:globe_with_meridians: :round_pushpin: Geolocation Queries with Firestore & RxJS
https://geo-test-c92e4.firebaseapp.com/
477 stars 106 forks source link

Incompatibility with firebase-admin 11.5.0 #261

Open sentd94 opened 1 year ago

sentd94 commented 1 year ago
    GeoFireClient.prototype.point = function (latitude, longitude) {
        return {
            geopoint: new this.app.firestore.GeoPoint(latitude, longitude),
            geohash: encode(latitude, longitude, 9)
        };
    };

this.app.firestore.GeoPoint is not a constructor in the latest version.

This leads to an issue when trying to create a GeoPoint like this (when using the latest firebase-admin version):

const position = geo.point(40, -119);