diggy
(Dgraph Bot)
October 1, 2017, 11:00pm
1
Moved from GitHub dgraph/1559
Posted by davedbase :
It would be really great if there was a function to call and return distance between points or polygons. ie. @distance (PointA, PointB). If it were to return the result in meters that could be really, really handy!
4 Likes
diggy
(Dgraph Bot)
October 20, 2017, 4:18am
2
paul-ylz commented :
Agreed, this would be awesome to facilitate sorting geo queries by distance to a particular point.
diggy
(Dgraph Bot)
March 17, 2019, 5:33am
3
wildan2711 commented :
Just came across the need for this feature, in tandem with the near
query, that would be cool.
diggy
(Dgraph Bot)
July 4, 2020, 1:23pm
4
wildroco commented :
any updates here?
I want to sort nodes by distance from fixed location. Is it possible without distance function?
myo
(Mehdi Yousfi)
October 5, 2020, 5:25am
5
I’m also in the need for such a feature:
sorting by distance from a fix point
getting the distance of each matching node
using the distance with math functions to mix that value with other factors.
My use case is for matchmaking in a game: Players will be paired based on how close are the location, rank…
pawan
(Pawan Rawal)
October 7, 2020, 5:49am
6
Thanks, folks for your feedback. This would be a new feature which would have to be implemented in DQL. We can look into as part of the roadmap for the next quarter. No ETA on when this would be available yet.
3 Likes
mika
March 31, 2021, 5:52pm
7
I really hope to see this feature soon, I had this feature with Neo4j, it’s very useful.
Do we have an ETA at this time ?
Thanks
2 Likes
chewxy
(chewxy)
April 1, 2021, 3:20am
8
@hardik can we put this in the list of feature requests
3 Likes
@chewxy Is this feature has been published
MichelDiz
(Michel Diz)
September 21, 2022, 2:15am
10
Chew is not around anymore. I have reopened it to track there in Github.