MichaelSolati / geofirestore-js

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

Valid Geopoints Give Validation Errors #176

Closed zoofan closed 4 years ago

zoofan commented 4 years ago

I'm creating a GeoPoint object like so: let locationGeoPoint = new firebase.firestore.GeoPoint(40.021591, -83.039268)

Then I'm running a query: const query = userProfileCollection.near({ center: locationGeoPoint, radius: 12 }); query.get().then((value: GeoQuerySnapshot) => { console.log(value.docs); });

I get

Invalid location: latitude must exist on GeoPoint

If I change the longitude to -82 or -84, I don't get the error. But at -83, I get the error.