title: How to query closest GeoPoints in a collection in Firebase Cloud Firestore?
body: <p>The new Firestore DB allows me to store GeoPoints. Is there a way to query based on them?</p>
  
  <p>So for example if each of my collections documents got a <code>location</code> field of the type <code>geopoint</code>.
  How can I get the closest 10 documents to an arbitrary coordinate?</p>
  
  <p>The documentation doesn't seem to cover this. I tried stuff like this:</p>
  
  <pre><code>someRef.where('location', '&gt;', geopoint).limit(10).get();
  </code></pre>
  
  <p>Obviously this doesn't make much sense but I'm just trying out some stuff here </p>