# extent(...)

### extent(...)

Returns a bounding box that encloses a set of geometries

Works with the following datatypes:

This function works with 2.1 endpoint(s). What does this mean? »

The extent(...) generates a rectangle that completely encompass a set of points or geometries, to get the rectangle that surrounds all of the crimes in Chicago in 2014:

https://data.cityofchicago.org/resource/6zsd-86xi.geojson?\$select=count(*),extent(location)&year=2014

This can be very useful in generating heat maps or to describe the geographic area affected by a given dataset.