# Finding distance between Geo Points

**URL:** <https://discuss.elastic.co/t/finding-distance-between-geo-points/70147>\
**Category:** Elasticsearch\
**Created:** [December 28, 2016, 2:27pm UTC](https://discuss.elastic.co/t/finding-distance-between-geo-points/70147 "2016-12-28T14:27:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![patlola](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patlola/32/14190_2.png) [@patlola](https://discuss.elastic.co/u/patlola)\
**Post date:** [December 28, 2016, 2:27pm UTC](https://discuss.elastic.co/t/finding-distance-between-geo-points/70147/1 "2016-12-28T14:27:19Z")

</div>

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](https://discuss.elastic.co/t/geo-distance-calculation-using-script-fields-in-v5-0-1-reason-unable-to-find-dynamic-method-distanceinkm/69028)

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

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [December 28, 2016, 2:45pm UTC](https://discuss.elastic.co/t/finding-distance-between-geo-points/70147/2 "2016-12-28T14:45:26Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking\_50\_scripting.html#\_geopoint\_scripts](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking_50_scripting.html#_geopoint_scripts)

---

<div class="post-metadata">

**Author:** ![patlola](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patlola/32/14190_2.png) [@patlola](https://discuss.elastic.co/u/patlola)\
**Post date:** [December 28, 2016, 2:48pm UTC](https://discuss.elastic.co/t/finding-distance-between-geo-points/70147/3 "2016-12-28T14:48:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 25, 2017, 2:48pm UTC](https://discuss.elastic.co/t/finding-distance-between-geo-points/70147/4 "2017-01-25T14:48:31Z")

</div>

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