How amodamrutkar/ride-pooling works
PoolIQ is a ride-pooling dispatch engine with a React control-room UI. The main workflow accepts ride requests through the API, batches them, assigns routes, independently validates route plans, and computes fair fares and operational state for display. The graph also preserves the documented live route-diff, road-routing, fleet, traffic, and telemetry capabilities. Some links rely on the README or SOURCE INDEX; unsampled implementations and optional integrations are not inferred beyond that evidence.
Main entry points: world.py World Orchestrator · App.jsx Application Shell · PoolScreen.jsx Live Pool · api.js API Client
Components 26
Control Room
- Application Shell
frontend/src/App.jsx - Live Pool
frontend/src/pages/PoolScreen.jsx - Corridors
frontend/src/pages/RoutesScreen.jsx - Fleet Telemetry
frontend/src/pages/FleetScreen.jsx - Efficiency Hub
frontend/src/pages/StatsScreen.jsx - Map Rendering
frontend/src/components/LeafletMap.jsx - Gate Verification UI
frontend/src/components/ZeroTrustGate.jsx - Route Diff UI
frontend/src/components/RouteDiffView.jsx - Nashik Map Data
frontend/src/data/nashikLocations.js - API Client
frontend/src/utils/api.js
API and State
- REST API
backend/app/routes.py - World Orchestrator
backend/app/world.py - Domain Models
backend/app/models.py - State Persistence
backend/app/persistence.py
Pooling Engine
- Sliding Batcher
backend/engine/batching/sliding_window.py - Dispatch Strategies
backend/engine/dispatch - VRPTW Optimizer
backend/engine/optimizer/ortools_vrptw.py
Simulation and Routing
- Simulation Services
backend/engine/sim - Road and Matrix Routing
backend/engine/routing - ETA and Lateness
backend/engine/sim/eta_service.py
Verification and Fare
- Independent Route Gate
backend/engine/validator/validator.py - GPS Integrity
backend/engine/integrity/gps_verifier.py - Shapley Fare and Audit
backend/engine/pricing/shapley.py - Network Metrics
backend/engine/metrics/metrics.py
Other components
- Operator / Rider
- OSRM Routing
Connections 33
- Operator / Rider → Live Pool: submits ride
- Application Shell → Live Pool: shows
frontend/src/App.jsx - Application Shell → Corridors: shows
frontend/src/App.jsx - Application Shell → Fleet Telemetry: shows
frontend/src/App.jsx - Application Shell → Efficiency Hub: shows
frontend/src/App.jsx - Live Pool → API Client: requests API
frontend/src/pages/PoolScreen.jsx - API Client → REST API: calls
frontend/src/utils/api.js - Application Shell → API Client: polls state
frontend/src/App.jsx - REST API → World Orchestrator: routes operations
backend/app/routes.py - World Orchestrator → Sliding Batcher: batches requests
backend/app/world.py - World Orchestrator → Dispatch Strategies: runs dispatch
backend/app/world.py - World Orchestrator → Independent Route Gate: checks routes
backend/app/world.py - World Orchestrator → Shapley Fare and Audit: calculates fares
backend/app/world.py - World Orchestrator → Network Metrics: computes metrics
backend/app/world.py - World Orchestrator → State Persistence: persists state
backend/app/world.py - World Orchestrator → Simulation Services: advances simulation
backend/app/world.py - World Orchestrator → ETA and Lateness: tracks ETAs
backend/app/world.py - World Orchestrator → GPS Integrity: verifies positions
backend/app/world.py - Dispatch Strategies → VRPTW Optimizer: polishes routes
backend/engine/dispatch/hybrid.py - Dispatch Strategies → Road and Matrix Routing: queries travel costs
backend/engine/dispatch/__init__.py - Independent Route Gate → Road and Matrix Routing: checks feasibility
backend/engine/validator/validator.py - ETA and Lateness → Road and Matrix Routing: queries travel times
backend/engine/sim/eta_service.py - GPS Integrity → Road and Matrix Routing: checks distance
backend/engine/integrity/gps_verifier.py - Road and Matrix Routing → OSRM Routing: gets road routes
- Shapley Fare and Audit → Domain Models: uses ride models
backend/engine/pricing/shapley.py - Corridors → Nashik Map Data: loads corridors
frontend/src/pages/RoutesScreen.jsx - Fleet Telemetry → Map Rendering: renders fleet
frontend/src/pages/FleetScreen.jsx - Corridors → Map Rendering: renders corridors
frontend/src/pages/RoutesScreen.jsx - Live Pool → Gate Verification UI: offers verification
frontend/src/pages/PoolScreen.jsx - Live Pool → Route Diff UI: shows route changes
frontend/src/pages/PoolScreen.jsx - Gate Verification UI → API Client: requests checks
- Route Diff UI → API Client: fetches route diff
frontend/src/components/RouteDiffView.jsx - Efficiency Hub → Network Metrics: displays telemetry