ferrobus.calculate_isochrone#
- ferrobus.calculate_isochrone(transit_model, start_point, departure_time, max_transfers, cutoff, index)#
Calculate an isochrone from a single starting point
Computes an accessibility isochrone (travel-time polygon) using the provided spatial index for rapid calculation.
- Parameters:
transit_model (TransitModel) – The transit model to use for routing.
start_point (TransitPoint) – Starting location for the isochrone.
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 isochrone.
index (IsochroneIndex) – Pre-computed isochrone spatial index for the area.
- Returns:
WKT representation of the resulting polygon isochrone.
- Return type:
str
- Raises:
RuntimeError – If the isochrone calculation fails.