Finding distance between Geo Points


(Patlola) #1

Hello,
I would like to find distance between two geo points(lat,lon)

I have tried to find distance using script_fields but getting this error

Is there any good way to find out the distance between two points except geo sort and filter queries. ?


(Yannick Welsch) #2

https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking_50_scripting.html#_geopoint_scripts


(Patlola) #3

Thanks @ywelsch
i was thinking that my query/approach was wrong, thanks will check


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.