How andrewgiganto/ride-hailing-system works
This repository is a small ride-hailing simulation. Its main workflow creates a passenger and driver, requests a ride, estimates its fare, assigns the available driver, updates trip status, and processes payment. The simulation entry point coordinates these steps; ride and user behavior live in separate model modules. Payment implementation details are not shown, so that component is represented only by the import and call visible in the entry point.
Main entry points: main.py Simulation Flow · user.py Passenger and Driver · ride.py Ride and Fare · payment Payment Processing
Components 4
Simulation
- Simulation Flow
src/main.py - Passenger and Driver
src/models/user.py
Ride Domain
- Ride and Fare
src/models/ride.py
Payment
- Payment Processing
src/models/payment
Connections 3
- Simulation Flow → Passenger and Driver: creates and calls
src/main.py - Simulation Flow → Ride and Fare: creates and updates
src/main.py - Simulation Flow → Payment Processing: creates and processes
src/main.py