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

feat: add the node list sorting by distance #124

Closed
yilmazbahadir opened this issue Jan 3, 2022 · 1 comment
Closed

feat: add the node list sorting by distance #124

yilmazbahadir opened this issue Jan 3, 2022 · 1 comment

Comments

@yilmazbahadir
Copy link
Contributor

We should be able to sort nodes by distance for a given location.

/nodes?latitude=xx&longitude=yy&order=distance

/nodes?order=distance => should sort the nodes according to the distance to the Point(0, 0)

We should add the following:

  • NodeListOrder.Distance to the NodeListOrder enum.
  • 'latitude', 'longitude' filters.
@yilmazbahadir
Copy link
Contributor Author

duplicate of #123

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

No branches or pull requests

1 participant