CRAFT: Constrained Route planning with Adaptive Framework and Template-based code generation
Elmahallawy, Shahd, Eldawy, Ahmed
–arXiv.org Artificial Intelligence
Everyday routing requests are rarely a point-to-point shortest path. A driver may need to visit stops, sometimes in a fixed order, under time budgets or distance limits, and perhaps recharge their EV car along the way. Each combination is a distinct routing problem that classically requires its own algorithm, so no fixed solver covers the space of queries users may ask. This paper presents CRAFT, which takes a constrained routing query as free text and returns a route that satisfies the user's requirements on a real road network. An LLM parses the query and generates four search functions, which a generic graph-search engine executes on the road network. We formalize the underlying problem as State-Expanded RCSP (SE-RCSP), which extends resource-constrained shortest paths (RCSP) with non-additive state such as node-dependent resets and discrete progress tracking. We evaluate CRAFT on 2,600 natural-language queries over California road networks against two baselines, analyzing correctness, constraint violations, long-distance scalability, and semantic POI filtering.
arXiv.org Artificial Intelligence
Nov-20-2026
- Country:
- North America > United States > California (0.48)
- Genre:
- Research Report (0.50)
- Industry:
- Transportation
- Infrastructure & Services (1.00)
- Ground > Road (1.00)
- Electric Vehicle (1.00)
- Transportation
- Technology: