Closed prashantkumarjha47 closed 5 years ago
Data and documents near to be structured in a special way in order to make queries. I'd recommend reading the thread in issue #81 to understand, but keeping it simple docs need to be created by geofirestore in order to be queried by geofirestore.
If passing radius to geofirestore.collection, getting empty docs in response whereas if passing radius 0 getting all
this.geofirestore = new GeoFirestore(this.firestore) this.query = this.geofirestore.collection("PassengerLocationDb").near({ center: new firebase.firestore.GeoPoint(35.17506145581017, 129.08302834244256), radius: 5 }) this.query.onSnapshot((docs) => { docs.forEach(doc => { console.log(doc.data()); }) })