[Python] A/B street road closure

Discussão em 'Python' iniciado por Stack, Junho 26, 2025.

  1. Stack

    Stack Membro Participativo

    I’m working on a traffic simulation project using A/B Street, and I would like to programmatically close a specific road or street (e.g., Salah Salem in Cairo) using either the CLI (command line interface) or any available API.

    So far, I have explored:

    • Creating scenarios with changed traffic signals using abst_cli.exe
    • Reviewing the documentation and JSON scenario format under data/system/scenarios/
    • Using the UI to manually block roads, but I need to automate it via code or script

    My goal is to simulate the impact of road closures for urban planning purposes.

    My questions:

    1. Is there a way to close a road (i.e., disable or block it for cars) using the CLI or an API?
    2. If not directly, is there a workaround like placing modal filters or editing the map data (e.g., with tags)?
    3. What specific files or parameters do I need to modify?

    Continue reading...

Compartilhe esta Página