getBoundingBox

fun List<GeoPoint>.getBoundingBox(): BoundingBox

Gets the BoundingBox of a list of GeoPoints. Will cause issues when called with less than 2 elements on the list.

Author

Arnau Mora

Since

20220401

Return

A BoundingBox instance containing all the points of the list.

Throws

When the bounding box could not have been obtained.