MichaelSolati / geofirestore-js

Location-based querying and filtering using Firebase Firestore.

Home Page:https://geofirestore.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Valid Geopoints Give Validation Errors

zoofan opened this issue · comments

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.