Closed zoofan closed 4 years ago
I'm creating a GeoPoint object like so: let locationGeoPoint = new firebase.firestore.GeoPoint(40.021591, -83.039268)
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); });
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.
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
If I change the longitude to -82 or -84, I don't get the error. But at -83, I get the error.