title: Firebase: Query by nearest location
body: <p>Firebase can store documents with Geopoint object. <a href="https://firebase.google.com/docs/reference/android/com/google/firebase/firestore/GeoPoint" rel="nofollow noreferrer">https://firebase.google.com/docs/reference/android/com/google/firebase/firestore/GeoPoint</a></p>
  
  <p>But we can't use range filter on different fields and this is necessary for location querying. </p>
  
  <p>As I understand year ago there was functionality to make such queries using Geofire
  <a href="https://stackoverflow.com/questions/43357990/query-for-nearby-locations?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa">Query for nearby locations</a></p>
  
  <p>But now it is obsolete and not working.</p>
  
  <p>What is current solution?</p>