We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug NEARBY does not return distance property in JSON response if distance to the object is 0.
To Reproduce
set fleet bus2 point 33.5123 -112.2693 nearby fleet distance point 33.5123 -112.2693 100
returns
{ "ok": true, "objects": [ { "id": "bus2", "object": { "type": "Point", "coordinates": [ -112.2693, 33.5123 ] } } ], "count": 1, "cursor": 0, "elapsed": "73.9µs" }
Expected behavior If I explicitly request the distance to the id I would expect it to return a distance property either way.
id
Operating System (please complete the following information):
If this is not intentional I would like to fix this.
The text was updated successfully, but these errors were encountered:
You are probably right.
Sorry, something went wrong.
40105e6
Include "distance" to output when user specifically requests
901919c
fixes #599
No branches or pull requests
Describe the bug
NEARBY does not return distance property in JSON response if distance to the object is 0.
To Reproduce
returns
Expected behavior
If I explicitly request the distance to the
id
I would expect it to return a distance property either way.Operating System (please complete the following information):
If this is not intentional I would like to fix this.
The text was updated successfully, but these errors were encountered: