---
title: "haversineCumulatedDistanceWgs84 | Mobile sdk | Mobile sdk android | Android"
description: "haversineCumulatedDistanceWgs84"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# haversineCumulatedDistanceWgs84

fun [haversineCumulatedDistanceWgs84](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.helpers/-m-t-math/haversine-cumulated-distance-wgs84/)(route: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)<[LngLat](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-lng-lat/)\>): [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)

Calculates the total cumulated distance of a route made of multiple WGS84 coordinates.

#### Return

The total distance in meters.
