-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get all documents within a radius #43
Comments
That seems odd, and there are test in place for just this sort of issue. Could you provide a working (broken) example? |
@MichaelSolati Haven't got anything live, but what extra info would you like to see? This is my collection: After making the request as shown above, I get this response: +++++ This is my firebase config, if useful:
|
In all sincerity a broken app would be helpful. I'm doing tests and fixes right now for other issues and have not seen this issue. So an example would be preferred. It can be simple, it just need to be broken. |
Ok, so I just took a better look at your code, and I feel really silly not to have realized this before, but I do not think you are using the library correctly. In fact I'm surprised you're getting anything at all the way you are using it. The below code creates a GeoFirestoreQuery:
If you wanted to make a geoquery you'd use the However you're calling the Calling
I'll be closing this for now, as I think I have your issue/question addressed. However please let me know if I am mistaken and we can reopen this and go from there. |
Brilliant, that fixed it. Sorry for my misunderstanding! The key_entered/exited is what confused me. Thanks for the great library! |
i also had the same issue as @AlcuinGuest. finding this issue and explanation solved my dilemma as well. thank you for providing the info and great tools. food for thought: when i read the docs i interpreted 'key_entered' and 'key_exited' as some type of keyboard events for a browser client-side scenario. i'm also fairly new to node.js. nonetheless, i was about to give up until i found this. thanks. |
Trying to retrieve all the documents that fall within the radius of a certain point.
Query:
Firestore (documents set by geofirestore.set():
Document 1 (same as search point):
Document 2:
No matter what I try, it is always returning both results, even though they are 100's of kms away from eachother. Can someone please recommend what I can do to make this work?
Much appreciated! :)
The text was updated successfully, but these errors were encountered: