Im using dart/flutter and the \'package:latlong/latlong.dart\' to parse a GPX file into a list of LatLng objects. That is working fine, but the next step is to
\'package:latlong/latlong.dart\'
I used westdabestdb's answer. It's okay.
westdabestdb
And also, you can use geolocator plugin for that.
geolocator
Geolocator.distanceBetween(lat1, lon1, lat2, lon2);
geolocator doc