dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

Add @distance for geo

Open davedbase opened this issue 7 years ago • 4 comments

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!

davedbase avatar Oct 01 '17 23:10 davedbase

Agreed, this would be awesome to facilitate sorting geo queries by distance to a particular point.

paul-ylz avatar Oct 20 '17 04:10 paul-ylz

Just came across the need for this feature, in tandem with the near query, that would be cool.

wildan2711 avatar Mar 17 '19 05:03 wildan2711

any updates here?

I want to sort nodes by distance from fixed location. Is it possible without distance function?

wildroco avatar Jul 04 '20 13:07 wildroco

Github issues have been deprecated. This issue has been moved to discuss. You can follow the conversation there and also subscribe to updates by changing your notification preferences.

drawing

minhaj-shakeel avatar Jul 20 '20 19:07 minhaj-shakeel