alto_great_circle_distance 0.0.3 alto_great_circle_distance: ^0.0.3 copied to clipboard
Plugin for calculating Great Circle Distance with Spherical Law of Cosines.
Great Circle Distance #
Plugin for calculating Great Circle Distance by Spherical Law of Cosines.
The great-circle distance, orthodromic distance, or spherical distance is the distance along a great circle. It is the shortest distance between two points on the surface of a sphere, measured along the surface of the sphere (as opposed to a straight line through the sphere's interior).
// The Geolocation of St.Mary Cathedral final Geo geo1 = Geo(lat: 16.77858116672366, lon: 96.1657684686045); // The Geolocation of St. Peter's Basilica final Geo geo2 = Geo(lat: 41.90219864557144, lon: 12.454035933187363); // The distance in km. final double? theDistance = await GCD().cal(geo1: geo1, geo2: geo2);