speed_limit_edit_tool
Modify speed limits on specific road segments using a target road name or location with a radius, enabling localized speed changes for SUMO traffic simulations.
Instructions
Modify speed limits on specific road segments (supports partial application).
✅ Trip file can be reused - edges still exist, only speed limit changed.
Workflow: speed_limit_edit → sumo_runner (reuse existing trip file)
REALISTIC USAGE: Use reference_location + radius_km for localized speed limit changes!
Examples:
# REALISTIC: Reduce speed to 40km/h on 500m of Teheran-ro near Gangnam Station
speed_limit_edit_tool(
net_file="gangnam_station.net.xml",
target_road_name="테헤란로",
reference_location="강남역",
radius_km=0.5,
new_speed_kmph=40.0
)
# Then: sumo_runner (reuse trip file - no trip_generate needed!)
Args:
net_file: Network file path
route_file: Route file path (optional, can be reused after this tool)
output_dir: Output directory for results
target_road_name: Road name (e.g., '테헤란로')
edge_ids: Specific edge IDs (optional)
reference_location: Reference point (optional, e.g., "강남역")
radius_km: Radius in km (optional, e.g., 0.5)
new_speed_kmph: New speed limit in km/h (e.g., 40.0)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge_ids | No | ||
| net_file | Yes | ||
| radius_km | No | ||
| output_dir | No | output/networks | |
| route_file | No | ||
| new_speed_kmph | No | ||
| target_road_name | No | ||
| reference_location | No |