Finding nearby latlng using firebase
<pre><code>-uniqueid1
            latitude: 30.7188235
            longitude: 76.810132
-uniqueid2
            latitude: 30.7188235
            longitude: 76.810132
</code></pre>

<p>there are 1000 such records in firebase , I want to find uniqueids closest to a specific long/lat.I started using startAt() and endAt() but no success.How do we implement conditional clause and multiple queries.The query me looking for is</p>

<pre><code>SELECT uniqueids from table where (lon-specific_lon)^2+(lat-specific_lat)^2&lt;CONSTANT.
</code></pre>