arXiv:2610.26346cs.AIOct 2026

Manuscript Offprint

arXiv:2610.26346

CARRS: A Constraint-Aware, Real-Time Routing System for Emergency Vehicles in Urban Environments

Vincent Sello, Timothy Adeliyi, Ridewaan Hanslo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

VINCENT, V, SELLO

Academy of Computer Science and Software Engineering, University of Johannesburg, Johannesburg, Gauteng, South Africa, vincentiussello@gmail.com

TIMOTHY, T, ADELIYI

Department of Informatics, University of Pretoria, Pretoria, Gauteng, South Africa, timothy.adeliyi@up.ac.za

RIDEWAAN, R, HANSLO

Department of Information Systems, University of Cape Town, Cape Town, Western Cape, South Africa, ridewaan.hanslo@uct.ac.za

Emergency vehicles such as police vehicles, fire engines, and ambulances require a stable and efficient route optimization to reach life-critical events in the shortest times possible. However, the dynamic nature of urban traffic makes this ideal scenario much more challenging, causing critical life-threatening delays. Traditional civilian navigation systems cannot account for real-time traffic changes alongside vehicle-specific constraints, creating inadequate routing scenarios. This research presents the Constraint-Aware Real-Time Routing System (CARRS), a unified software architecture tailored for emergency coordination. The CARRS architecture is engineered to fuse together classical pathfinding algorithms such as A*, Dijkstra, and Bidirectional A*, with Constraint Satisfaction Problem methodologies. The Design Science Research Methodology is the research framework, and prototyping is the iterative process. This research strategy guides the investigation, producing a system that dynamically computes obstacle-aware, legally compliant routes for emergency vehicles. The artifact was empirically evaluated using OpenStreetMap data for major metropolitan road networks, combined with simulated dynamic traffic scenarios. Performance metrics focused on route optimality, constraint adherence, rerouting responsiveness, and the potential for future system scalability. Findings revealed the system's capability to generate optimal routes for operationally relevant subgraphs in under 35 seconds, with incremental rerouting responsiveness below 20 seconds. Furthermore, the system achieved more than 90% adherence to vehicle-specific constraints, making the CARRS architecture viable for real-time dynamic routing requirements. This study delivers a routing platform that bridges artificial intelligence-driven optimization with software engineering operational compliance, presenting a practical transformative step toward adaptive emergency vehicle coordination in dynamic urban environments.

CCS CONCEPTS • Applied computing ~ Transportation • Computing methodologies ~ Artificial intelligence ~ Search methodologies ~ Discrete space search

Additional Keywords and Phrases: A* Search Algorithm, Constraint Aware Systems, Route Optimization, Emergency Services, Artificial Intelligence, Vehicle Coordination, Smart Mobility.

1 INTRODUCTION

Efficient emergency routing saves lives and property, making every second critical [1]. However, first responders navigating urban environments face a chaotic mix of dynamic obstacles, such as traffic congestion and accidents, and strict physical constraints, including vehicle weight limits, turning radius limitations, and access permissions [2, 3]. Traditional navigation systems simply aren't adequately equipped to juggle these real-time and static variables simultaneously [4].

Constraint Satisfaction Problem (CSP) methodologies offer a structured way to model these complex operational rules [5, 6]. Albeit, because CSPs are computationally heavy (often classified as NP-complete), solving them by brute force during an active emergency is impractical [7]. While advanced search strategies and heuristic filtering help navigate these complexities [8 - 10], most existing routing systems still fall short. For example, they typically optimize for travel time under simplified or static conditions [11]. In addition, when systems do handle dynamic updates, they often validate constraints after finding a path. This disconnected approach generates unsafe or legally invalid routes, forcing dispatchers to intervene manually and waste precious time.

This operational gap highlights this study's research question: How can we design a routing system that computes real-time, mathematically optimal, and strictly constraint-compliant routes for emergency vehicles in dynamic cities? To answer this, we introduce the Constraint-Aware Real-Time Routing System (CARRS). Our specific contributions include:

Integrating classical shortest-path algorithms (A*, Dijkstra, Bidirectional A*) directly with CSP-based modelling to guarantee both route optimality and operational adherence.

Developing a multi-threaded software architecture to ensure dispatcher interfaces remain highly responsive during intense computational loads.

Evaluating the system's constraint adherence and rerouting speeds under simulated dynamic traffic conditions.

By embedding CSP principles directly into the pathfinding loop, the CARRS architecture eliminates the gap between theoretical routing and real-world compliance. This unified software engineering framework enhances dispatcher situational awareness, reduces manual routing delays, and is posited to support the broader societal goal of resilient and intelligent emergency response.

References (36)