generate_voronoi

The central module containing code to create CH4 and H2 voronoi polygones

get_voronoi_geodataframe(buses, boundary)[source]

Create voronoi polygons for the passed buses within the boundaries.

Parameters:
  • buses (geopandas.GeoDataFrame) – Buses to create the voronois for.
  • boundary (Multipolygon, Polygon) – Bounding box for the voronoi generation.
Returns:

gdf (geopandas.GeoDataFrame) – GeoDataFrame containting the bus_ids and the respective voronoi polygons.