Total distance calculation from LatLng List

前端 未结 5 714
梦毁少年i
梦毁少年i 2020-12-16 02:19

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

5条回答
  •  感情败类
    2020-12-16 03:13

    I used westdabestdb's answer. It's okay.

    And also, you can use geolocator plugin for that.

    Geolocator.distanceBetween(lat1, lon1, lat2, lon2);
    

    geolocator doc

提交回复
热议问题