# How to get trip length out of a series of gps coordinates

**URL:** <https://discuss.elastic.co/t/how-to-get-trip-length-out-of-a-series-of-gps-coordinates/19552>\
**Category:** Elasticsearch\
**Created:** [September 1, 2014, 1:22pm UTC](https://discuss.elastic.co/t/how-to-get-trip-length-out-of-a-series-of-gps-coordinates/19552 "2014-09-01T13:22:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_R](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@M\_R](https://discuss.elastic.co/u/M_R)\
**Post date:** [September 1, 2014, 1:22pm UTC](https://discuss.elastic.co/t/how-to-get-trip-length-out-of-a-series-of-gps-coordinates/19552/1 "2014-09-01T13:22:14Z")

</div>

hi all,

what would be the smartes approach to calculate the distance traveled for a  
(filtered) series of coordinates? i´m wondering what tools could help out  
there...

somewhat like the sum aggregation of a geopoint field respecting the result  
order? i hope somebody can help me out.

or is it better to iteratively increase a trip distance field with  
scan&scroll?

thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3e4ef50a-0301-4b38-ba2c-9429f92485d5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3e4ef50a-0301-4b38-ba2c-9429f92485d5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:05am UTC](https://discuss.elastic.co/t/how-to-get-trip-length-out-of-a-series-of-gps-coordinates/19552/2 "2017-07-06T01:05:10Z")

</div>

Closed on July 6, 2017, 1:05am UTC


