toBounds method

GoogleMapsUtilsLatLngBounds toBounds(
  1. double x,
  2. double y,
  3. double radiusInMeters
)

Creates a bounding box centered at (x, y) with radiusInMeters.

Returns a record (ne: Point<double>, sw: Point<double>).

Implementation

GoogleMapsUtilsLatLngBounds toBounds(double x, double y, double radiusInMeters) {
  final internal = SphericalUtils.toBounds(x, y, radiusInMeters);
  return (ne: internal.northEast, sw: internal.southWest);
}