Loading Page

Fetching route intelligence...

OSRM Dynamic Waypoints + Multi-Agent Intelligence

Autonomous Fleet Rerouting & Geospatial Disruption Defense

Transform static OpenStreetMap geometry into a self-healing logistics network. SupplyNet automatically ingests roadblock telemetry, evaluates PostGIS polygon buffers, and empowers multi-agent LLMs to inject micro-detour waypoints in milliseconds.

Route Efficiency 88.4% Bypasses 3.5h standstills
Detour Calculation < 850ms OSRM Multi-Level Dijkstra
Active Corridor 1,800+ km Chandigarh → Visakhapatnam
Multi-Agent Loops 3 Hops Supervisor • Planner • Critic
CASE STUDY 01 • ACTIVE TRIP #101 (TRUCK TRK-IND-1002)

Live Rerouting Simulation & Micro-Detour Architecture

Simulating an active freight run from Chandigarh to Visakhapatnam (~1,800 km) encountering an unexpected civil roadblock on NH-44 near Gwalior.

Status: DETOUR INJECTED
Trip Checkpoints 7 Nodes
PostGIS ID: #101
Chandigarh (Origin) PASSED

30.7333° N, 76.7794° E • Dep: 04:30 AM

Agra Checkpoint PASSED

27.1767° N, 78.0081° E • Speed: 62 km/h

Gwalior (NH-44 Block) BYPASSED

Civic Protest • 15 km PostGIS Buffer • 3.5h standstill avoided

Mehgaon / Bhind (Detour Node) INJECTED VIA

26.4921° N, 78.3812° E • +18.5 km • +25 mins

Jhansi Junction NEXT EN-ROUTE

25.4484° N, 78.5685° E • ETA: 14:15

Visakhapatnam (Dest.) DESTINATION

17.6868° N, 83.2185° E • Remaining: 1,320 km

⚠️ Why not standard OSRM alternatives? OSRM's default alternatives look for statistically distinct continental routes (diverting trucks 400+ km through Bihar). SupplyNet forces micro-diversions through intermediate city bypass nodes.
langgraph_supervisor.py • Event Dispatched
REROUTE_APPROVED
1. MONITORING AGENT (Spatial Ingestion) 0.08s

Detected collision: Truck TRK-IND-1002 route intersects Gwalior Protest Polygon buffer.

Payload: { "event": "DISRUPTION_ALERT", "city": "Gwalior", "severity": "HIGH", "lat": 26.2183, "lng": 78.1828 }
2. SUPERVISOR NODE (Orchestration) 0.12s

Queued state to Redis. Updated `active_trips.status = 'REROUTING'`. Dispatched candidate query to Planner Agent.

3. PLANNER AGENT (LLM + OSRM Tool Call) 0.65s

Queried bypass nodes: `[Bhind, Mehgaon, Dholpur, Morena]`. Formulated detour via Mehgaon corridor.

Proposed Detour: Agra → Mehgaon (26.4921, 78.3812) → Jhansi (+18.5 km, +25 min)
4. HARD GUARDRAIL + CRITIQUE EVALUATOR 0.24s

Deterministic code validated 16T truck clearance. Critique calculated Cost equation:

Cost = w1·(25 min) + w2·(18.5 km) + w3·(₹120 Toll) << Cost_Standstill(210 min delay). Result: APPROVED
Deep Architectural Breakdown

How SupplyNet Solves Highway Bottlenecks

A hybrid setup designed for high-scale enterprise fleets: high-frequency GPS telemetry in Redis, spatial intersections in PostGIS, and high-speed OSRM routing driven by multi-agent LLM decisions.

01

OSRM Micro-Detours via Waypoints

Default routing engines generate statewide diversions. SupplyNet structures queries by intermediate transit nodes (Agra → Mehgaon → Jhansi) to force tight, cost-efficient bypasses around local disruptions.

02

Automated PostGIS Geofencing

Converts unstructured news, roadblock reports, and weather alerts into spatial buffer polygons (ST_Buffer(Point, 15km)). Checks ST_Intersects against trip polylines with forward ETA windowing.

03

Streamlined Multi-Agent Chain

Replaces slow 6-hop LLM chains with a 3-hop optimized architecture: Monitoring Agent → Supervisor Node → Planner Agent, backed by a deterministic Code Guardrail and Critique Evaluator.

04

Hybrid Tri-Tier Telemetry

Separates high-frequency 30-second GPS pings into in-memory Redis buffers, preventing SQL database thrashing while persisting verified checkpoints and trips to PostgreSQL with PostGIS.

05

Multi-Enterprise Tenant Isolation

Every trip, truck, checkpoint, and audit log is isolated by enterprise_id foreign keys. Multiple freight companies operate simultaneously with zero cross-tenant data leaks.

06

Weighted Cost Tradeoff Function

Detour approval is mathematically governed by: Cost = w₁·Duration + w₂·Distance + w₃·Toll Ensures fuel, driver shift hours, and toll penalties never outweigh the delay time saved.

ACTIVE FEED MONITORING

Disruption Ingestion Radar

Automated news NLP, weather polygon parsing, and spatial geofence tagging.

BLOCKING NH-44 Corridor

Civil Protest near Gwalior

Geofence buffer: 15 km polygon. 3 active trips rerouted via Mehgaon/Bhind.

WEATHER Gondia Region

Severe Storm & Heavy Rain

Buffer: 20 km coverage circle. Temporal check triggered for tomorrow afternoon.

RESOLVED Agra Ring Road

Toll Plaza Slowdown

Speed updated via OSRM MLD customize. Delay < 8 mins, main path maintained.

Ready to Deploy Autonomous Fleet Routing?

Connect your fleet GPS pings to SupplyNet. Experience zero-delay dynamic waypoint rerouting and automated multi-agent spatial intelligence today.