intersectionGeoBoxes static method

List<GeoBox> intersectionGeoBoxes(
  1. List<GeoBox> geoBoxes
)

Computes intersection of list of GeoBox instances.

The altitude values are ignored. Limitation: Geo boxes are considered as non-intersecting if they overlap only on a single point, horizontal line or vertical line.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • geoBoxes List of GeoBox instances.

Returns List<GeoBox>. It will be empty if there is no overlap between all the passed GeoBox instances.

Otherwise, 1 or more geo boxes covering common area by all the passed GeoBox instances.

Implementation

static List<GeoBox> intersectionGeoBoxes(List<GeoBox> geoBoxes) => $prototype.intersectionGeoBoxes(geoBoxes);