Is there a way to query once for a given location and radius?
See original GitHub issueIs there a way to query once for a given location and radius? I don’t want to get changes realtime in this use-case. Instead, I just need all the results once the query completes.
I’m looking for something similar to the once
function in Firebase.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5
Top Results From Across the Web
Fast query of objects based on location and radius
To find all points within a search disk, traverse the tree while pruning nodes whose half-plane completely excludes the search disk. You'll have ......
Read more >How to fetch database objects whose location is in a radius ...
This video demonstrates how to use the "Search in radius " feature to generate a where clause which can be used to run...
Read more >Format location data to include a distance radius - Open Q&A
As you can see, the radius is set at query time, it is not part of the record data. So for a given...
Read more >How to query on a radius using ZIP (Postal) code or a city and ...
Click on Select map filter in top left of map. Draw a box of the area that you'd like to include in the...
Read more >Search with location radius - Laracasts
@varovas no, you do not need to know the distance each place is from each other. the distance column is calculated by the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, you can do this using the
"ready"
event listener. It would look something like this:The Ready Event tells you when the initial data is loaded, sure, but what he’s asking is if there is any way to just get all the data for the matching keys in one swoop instead of listening for individual events for each one.
As things are I can either query Firebase for the actual object for each key returned by Geofire on every Key Entered Event or I can pool the keys until the Ready Event fires and then I make a query to Firebase for the objects of all the keys returned by Geofire.
Both approaches seem cumbersome in their own ways.
Is there another way of doing this?