title: Flutter Firestore Geo query
body: <p><strong>WHAT I HAVE TO DO:</strong></p>
  
  <p>I'm building an application where I want to do a query in firebase and receive the users who are in a range of X kilometers. 
  But I want to limit this received documents and also to have a function for getting more documents on the scroll. I'm using a <code>StreamBuilder-&gt;ListView.build</code> in order to build my list. When I'm going to receive the end of the scrollable list I want to get more documents from Firestore (if I have any).</p>
  
  <hr>
  
  <p><strong>WHAT I'VE DONE ALREADY:</strong></p>
  
  <p>So far I found just 2 solutions for my problem:</p>
  
  <ol>
  <li><a href="https://pub.dev/packages/firestore_helpers" rel="noreferrer">Firestore Helpers</a></li>
  <li><a href="https://pub.dev/packages/geoflutterfire" rel="noreferrer">GeoFlutterFire</a></li>
  </ol>
  
  <hr>
  
  <p><strong>THE PROBLEM:</strong></p>
  
  <p>Both of those libraries are good with just one <strong>BIG</strong> problem, in both of this case I'm not able to limit the number of documents that I'm going to receive (I can <strong>JUST</strong> limit the original query for <code>Firestore.instance.collection("MyColection")</code>) but is not going to help me that much because I will have this case</p>
  
  <blockquote>
    <p>Give me 10 documents from Firestore -> Give me the 5km range users ->
    I will receive just 4 let's say.</p>
  </blockquote>
  
  <p>What I want instead is to receive 10 documents from Firestore within a range of X.</p>
  
  <p>Is there any solution for this problem? Or I need to implement my own library for this? Or is not possible even so?</p>