You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DISTANCE keyword output the distance of an object for the NEARBY command. It works with standard queries, but does not output for geofences when the FENCE keyword is specified.
This works:
> NEARBY fleet DISTANCE POINT 33 -115 10000
{"ok":true,"objects":[{"id":"hello","object":{"type":"Point","coordinates":[-115.001,33.002]},"distance":241.15}],"count":1,"cursor":0,"elapsed":"206.496µs"}
The DISTANCE keyword output the distance of an object for the NEARBY command. It works with standard queries, but does not output for geofences when the FENCE keyword is specified.
This works:
This does not:
The "distance" field should appear at the same level as "hello" and "object".
I suspect that the reason is distance calculation for standard queries is happening outside of the scanWriter.writeObject method, and the geofence logic is not including the calculation.
The text was updated successfully, but these errors were encountered: