geoLength function

double geoLength(
  1. Map object
)

Returns the great-arc length of the specified GeoJSON object in radians.

For polygons, returns the perimeter of the exterior ring plus that of any interior rings. This is the spherical equivalent of GeoPath.measure.

Implementation

double geoLength(Map object) {
  _lengthSum = Adder();
  _lengthStream(object);
  return _lengthSum.valueOf();
}