calculatePolygonWithHolesArea method

double calculatePolygonWithHolesArea(
  1. List<LatLng> outerPolygon,
  2. List<List<LatLng>> holes
)

Calculate the area of a polygon with holes.

Given an outer polygon defined by a list of outerPolygon points and a list of holes (each hole represented as a list of LatLng points), this function calculates and returns the area of the polygon with holes.

Implementation

double calculatePolygonWithHolesArea(
    List<LatLng> outerPolygon, List<List<LatLng>> holes) {
  return PolygonHole.calculatePolygonWithHolesArea(outerPolygon, holes);
}