faculty_extras.geoplot.geojson.centre

faculty_extras.geoplot.geojson.centre(geojson_object)

Calculate the centre of a GeoJSON object.

The midpoint of the bounding box is evaluated, not the centroid.

Parameters
geojson_objectdict

The GeoJSON object to calculate the centre of

Returns
float

The longitude of the centre

float

The latitude of the centre