Skip to content

Please review: How to sort by location (distance to a point)? #61

@edjez

Description

@edjez

We currently have a single-field sort capability:

/facilities.json?sortAsc={property1}

Need to have a parametrized sort for sorting facilities as a function of a distance to a point. The point is the argument, in lat long format.

Suggest this syntax:
/facilities.json?sortAsc={fromCoordinates:-1.6917,29.525}

where the two numbers after fromCoordinates are lat & long in WGS84 decimal format.
Notation input welcome!

Note: this could help implementation of an IHE profile, so speedy feedback appreciated.

Interested Parties: IHE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions