getLocation method
Gets the current location of a document for the given documentID
.
Implementation
Future<GeoPoint?> getLocation(String documentID) async {
final snapshot = await this.collectionReference.doc(documentID).get();
final geoPoint = getLocationValue(snapshot);
return geoPoint;
}