title: How do query all documents of a collection in Fire Store
body: <p>I am trying to display information from Cloud Firestore on Google maps. I am able to apply a marker from a document using the below code, however I have multiple documents that I need to display the data from.</p>
  
  <p>Below is the current code and as I said it successfully displays a marker with info from one document, however every document contains a different location that needs to be displayed on the map.</p>
  
  <pre><code>    private void addMapMarkers(){
  
      FirebaseFirestore rootRef = FirebaseFirestore.getInstance();
      CollectionReference pointsRef = rootRef.collection("notes");
      DocumentReference docRef = pointsRef.document("u20UmWSrlP0EiZH9CNP3");
      docRef.get().addOnCompleteListener(new 
      OnCompleteListener&lt;DocumentSnapshot&gt;() {
          @Override
          public void onComplete(@NonNull Task&lt;DocumentSnapshot&gt; task) {
              if (task.isSuccessful()) {
                  DocumentSnapshot document = task.getResult();
                  if (document.exists()) {
                      String latitude = document.getString("Latitude");
                      String longitude = document.getString("Longitude");
                      String name = document.getString("Attraction Name");
  
                      float lat = Float.parseFloat(latitude);
                      float lng = Float.parseFloat(longitude);
  
                      LatLng latLng = new LatLng(lat, lng);
                      mMaps.addMarker(new 
                      MarkerOptions().position(latLng).title(name));
                  }
              }
          }
      });
  }
  </code></pre>
  
  <p>Database Structure like below :</p>
  
  <p><a href="https://i.stack.imgur.com/WVh0e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WVh0e.png" alt=""></a></p>