How pratzyy370/routewise works
RouteWise is a Bengaluru-focused mobility platform: users compare ride-hailing quotes or request optimized multimodal journeys, then receive ranked route options with cost, time, and provenance details. Its API also supports metro discovery, accounts and saved places, fare history and alerts, and trip-based savings analysis. The graph includes the documented background alert workflow and dashboard. Some endpoint and service implementations were not sampled; those capability branches are based on the README and source index, not inspection of unsampled code.
Main entry points: router.py API v1 router · journey_service.py Journey optimizer · main.py FastAPI app · fares.py Fare endpoints
Components 26
API and dashboard
- FastAPI app
app/main.py - API v1 router
app/api/v1/router.py - Web dashboard
app/static/js/app.js
Journey planning
- Journey endpoints
app/api/v1/endpoints/journeys.py - Journey optimizer
app/services/journey_service.py - Routing engine
app/routing/engine.py - Journey records
app/repositories/journey_repo.py
Mobility data
- Fare endpoints
app/api/v1/endpoints/fares.py - Fare comparison
app/services/fare_service.py - Provider registry
app/providers/registry.py - Demo providers
app/providers/demo_providers.py - Fare repository
app/repositories/fare_repo.py - Metro endpoints
app/api/v1/endpoints/metro.py - Metro discovery
app/services/metro_service.py - Metro repository
app/repositories/metro_repo.py
Accounts and spending
- Authentication
app/api/v1/endpoints/auth.py - Auth dependencies
app/api/dependencies.py - Token security
app/core/security.py - Saved places
app/api/v1/endpoints/places.py - Trip logging
app/api/v1/endpoints/trips.py - Savings analysis
app/services/savings_service.py
Background operations
- Fare alerts
app/services/alert_service.py - Fare analytics
app/services/fare_analytics_service.py - Celery worker
app/tasks/worker.py
Other components
- Traveler
- Relational database
Connections 33
- Traveler → FastAPI app: uses
- FastAPI app → API v1 router: mounts
app/main.py - FastAPI app → Web dashboard: serves dashboard
- API v1 router → Journey endpoints: routes to
app/api/v1/router.py - API v1 router → Fare endpoints: routes to
app/api/v1/router.py - API v1 router → Metro endpoints: routes to
app/api/v1/router.py - API v1 router → Authentication: routes to
app/api/v1/router.py - API v1 router → Saved places: routes to
app/api/v1/router.py - API v1 router → Trip logging: routes to
app/api/v1/router.py - Journey endpoints → Journey optimizer: calls
app/api/v1/endpoints/journeys.py - Journey optimizer → Fare comparison: compares fares
app/services/journey_service.py - Journey optimizer → Routing engine: uses routing
app/services/journey_service.py - Journey optimizer → Metro discovery: uses metro
app/services/journey_service.py - Journey optimizer → Journey records: persists options
app/services/journey_service.py - Fare endpoints → Fare alerts: uses alerts
app/api/v1/endpoints/fares.py - Fare endpoints → Fare analytics: uses analytics
app/api/v1/endpoints/fares.py - Fare comparison → Provider registry: gets providers
app/services/fare_service.py - Fare comparison → Fare repository: saves quotes
app/services/fare_service.py - Provider registry → Demo providers: registers
app/providers/registry.py - Metro endpoints → Metro discovery: calls
app/api/v1/endpoints/metro.py - Metro endpoints → Metro repository: queries
app/api/v1/endpoints/metro.py - Metro discovery → Metro repository: reads stations
app/services/metro_service.py - Authentication → Token security: creates tokens
app/api/v1/endpoints/auth.py - Authentication → Auth dependencies: uses auth
app/api/v1/endpoints/auth.py - Auth dependencies → Token security: decodes tokens
app/api/dependencies.py - Saved places → Traveler: manages places
- Trip logging → Savings analysis: analyzes spending
- Celery worker → Fare alerts: evaluates alerts
app/tasks/worker.py - Fare alerts → Fare repository: reads fare data
app/services/alert_service.py - FastAPI app → Relational database: initializes schema
app/main.py - Journey records → Relational database: persists journeys
- Fare repository → Relational database: persists fares
- Metro repository → Relational database: reads stations