#community-help

Getting Document Distance without Filters

TLDR TJ asked about getting document distance without filters. Jason suggested using geosort to obtain the distance.

Powered by Struct AI

1

3
3mo
Solved
Join the chat
Jun 26, 2023 (3 months ago)
TJ
Photo of md5-3afef4cc9e9291f4f991a88147c78384
TJ
08:19 PM
Hello, is it possible to get the distance of a document (with geopoint fields) from a location without applying a filter?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:20 PM
If you apply a geosort, you should get the distance from the point you’ve mentioned in the geo sort
TJ
Photo of md5-3afef4cc9e9291f4f991a88147c78384
TJ
08:24 PM
Thanks a lot, Jason. I appreciate the quick response

1