iduedu.TransportSpec¶
- class iduedu.TransportSpec(name, vmax_tech_kmh, accel_dist_m, brake_dist_m, traffic_coef=1.0)[source]¶
Configuration of a single public-transport mode used to estimate travel time on graph edges.
Each transport specification defines technical and operational characteristics of a mode (e.g. bus, tram, subway) that are used to compute per-edge travel time based on segment length, road speed limits, acceleration/braking behavior, and traffic conditions.
- Parameters:
- name¶
Transport type identifier, usually matching the OSM
route=*value (e.g."bus","tram","subway").- Type:
- accel_dist_m¶
Typical distance (meters) required to accelerate from standstill to cruising speed.
- Type:
- brake_dist_m¶
Typical distance (meters) required to decelerate from cruising speed to standstill.
- Type:
- traffic_coef¶
Traffic slowdown coefficient. Values below 1.0 reduce effective speed due to congestion, values close to 1.0 indicate free-flow or priority operation.
- Type:
- __init__(name, vmax_tech_kmh, accel_dist_m, brake_dist_m, traffic_coef=1.0)¶
Methods
__init__(name, vmax_tech_kmh, accel_dist_m, ...)travel_time_min(segment_len_m, *[, ...])Compute travel time (minutes) for a single graph segment.
validate()Attributes