isGeoPointInBoundingBox method

bool isGeoPointInBoundingBox(
  1. LatLng l,
  2. LatLng topLeft,
  3. LatLng bottomRight
)

Check if a given geographic point l is within a bounding box defined by the top-left and bottom-right corners.

Given a geographic point l and the top-left topLeft and bottom-right bottomRight corners of a bounding box, this function checks if the point is within the specified bounding box.

Implementation

bool isGeoPointInBoundingBox(LatLng l, LatLng topLeft, LatLng bottomRight) {
  return BoundingBox.isGeoPointInBoundingBox(l, topLeft, bottomRight);
}