Skip to content
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

GeoQuery is only returning nearby keys if a huge radius is set #159

Open
ravivit9 opened this issue Aug 19, 2017 · 2 comments
Open

GeoQuery is only returning nearby keys if a huge radius is set #159

ravivit9 opened this issue Aug 19, 2017 · 2 comments

Comments

@ravivit9
Copy link

ravivit9 commented Aug 19, 2017

DESCRIPTION

This issue is similar to the ticket https://github.com/firebase/geofire-js/issues/80 .

GeoQuery returning near by records from firebase geofire directory after setting the radius of a large area.

Version info

Firebase:
"^4.3.0"

GeoFire:
"^4.1.2"
Other (e.g. Node, browser, operating system) (if applicable):
Mac / Chrome
npm 5.2.0

Test case

GeoQuery must return all records within the radius specified.

Steps to reproduce

Set smaller radius with records in firebase and the Geoquery returns no records unless we set a wider range to the radius parameter.

Expected behaviour

GeoQuery must return all records within the radius specified.

Actual behaviour

I have 3 records within few meters but GeoQuery returns nearby records only when a wider range of radius say in kilometres is set.

CIRCLE RADIUS to 300 METRES

After setting GeoQuery RADIUS to 1

screen shot 2017-08-19 at 17 23 03

After setting GeoQuery RADIUS to 6

screen shot 2017-08-19 at 17 22 01

@brettmwright
Copy link

Same issue here.

@diegopitt
Copy link

instead of using 6 for radius try using 0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants