I am trying to fetch marker locations from a firebase collection and display them on a map but am confused as to how to implement this by solely relying on the documentation of GeoFlutterFire.
So far as per the documentation I have used the following code:
Hi @DarshanGowda0 ,
I am trying to fetch marker locations from a firebase collection and display them on a map but am confused as to how to implement this by solely relying on the documentation of GeoFlutterFire.
So far as per the documentation I have used the following code:
GeoFirePoint center = geo.point(latitude: currentLocation.latitude, longitude: currentLocation.longitude); // get the collection reference or query var collectionReference = _firestore.collection('locations'); double radius = 5; String field = 'position'; Stream<List> stream = geo.collection(collectionRef: collectionReference)
.within(center: center, radius: radius, field: field);
I am relatively new to the flutter framework so would appreciate any help.