I'm developing an Android app that tracks the users location. I have it running locally so my LatLng
are getting stored in an array :
ArrayList<LatLng> points = new ArrayList<>();
In onLocationChanged
it then uses this to draw a poly line, this all works perfect for me. I want to calculate the distance of the entire journey. Is there a way to do this using my array?