Skip to content

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

@AnthonyLaw

Description

@AnthonyLaw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions