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

Assets sorted by distance in spatial queries #3

Open
pral2a opened this issue Jul 26, 2017 · 0 comments
Open

Assets sorted by distance in spatial queries #3

pral2a opened this issue Jul 26, 2017 · 0 comments

Comments

@pral2a
Copy link
Member

pral2a commented Jul 26, 2017

Issue by aperezeurob
Thursday Dec 15, 2016 at 12:07 GMT
Originally opened as https://github.com/OrganicityEu/organicity-discovery-api/issues/9


It would be nice to be able to retrieve assets sorted by distance in spatial queries, as part of the GeoJSON support of the Assets Discovery Service.

The desired behavior is like that of the $near operator of MongoDB and, ideally, would be added as a parameter to a spatial query like this:

 https://discovery.organicity.eu/v0/assets/geo/search?lat=51.507351&long=-0.127758&radius=10&km=true&type=urn:oc:entityType:trafficstats

, returning the assets sorted by distance to the point on earth passed in 'lat' and 'long' parameters of the query.

@pral2a pral2a added this to the OC 2 Open Call milestone Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant