MapBox, Kotlin. draw a path as user location changes

  android, kotlin, mapbox

Im trying to create a running app. with MapBox, Kotlin. I managed to get track live location working, I know how to set a marker on starting point. But I don’t know how to draw the path the user walked, or ran so I can show it when the user press stop. and also get the distance que walked, or ran.

don’t know if this is possible. I have managed to get directions from point A to B. but this is different.

thank you.

Source: Android Questions