Polygon from points#

shift.get_polygon_from_points(points: list[GeoLocation], buffer: Distance) Polygon#

Method to return bounding box polygon for a given set of points.

Parameters:
  • points (list[GeoLocation]) – List of geo location points

  • buffer (Distance) – Buffer distance to include for getting road network.

Returns:

Bounding box polygon

Return type:

Polygon

Examples

>>> get_polygon_from_points([[-97.32, 43.22], [-98.33, 45.35]], buffer=Distance(20, "m"))
<POLYGON ((-98.33 43.22, -97.32 43.22, -97.32 45.35, -98.33 45.35, -98.33 43...>