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

Add sorting nodes by location option when request node list #123

Open
AnthonyLaw opened this issue Jan 3, 2022 · 0 comments
Open

Add sorting nodes by location option when request node list #123

AnthonyLaw opened this issue Jan 3, 2022 · 0 comments

Comments

@AnthonyLaw
Copy link
Member

AnthonyLaw commented Jan 3, 2022

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.

By use Geospatial-queries

Update field type to point

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