isGeoPointInPolygon method
Check if a given geographic point l
is within a polygon defined by a list of polygon
points using the even-odd rule algorithm.
Given a geographic point l
and a list of polygon
points representing a polygon, this function checks if the point is inside the specified polygon using the even-odd rule algorithm.
Implementation
bool isGeoPointInPolygon(LatLng l, List<LatLng> polygon) {
return GeoPoints.isGeoPointInPolygon(l, polygon);
}