ferrobus.calculate_bulk_isochrones#
- ferrobus.calculate_bulk_isochrones(transit_model, start_points, departure_time, max_transfers, cutoff, index)#
Calculate isochrones from multiple starting points in batch mode
This is an optimized bulk version of calculate_isochrone that processes multiple starting points in parallel, which is significantly faster than repeated individual calculations.
- Parameters:
transit_model (TransitModel) – The transit model to use for routing.
start_points (list[TransitPoint]) – List of starting locations for isochrone calculations.
departure_time (int) – Time of departure in seconds since midnight.
max_transfers (int) – Maximum number of transfers allowed in route planning.
cutoff (int) – Maximum travel time in seconds to include in the isochrones.
index (IsochroneIndex) – Pre-computed isochrone spatial index for the area.
- Returns:
List of WKT representations of the resulting isochrones, matching the order of the input starting points.
- Return type:
list[str]
- Raises:
RuntimeError – If the batch isochrone calculation fails.