Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸš• Cab Hailing System

A Python-based command-line ride-booking application that simulates core cab-hailing functionality β€” from user registration and ride booking to dynamic fare calculation and trip scheduling.


πŸš€ Features

  • Ride Booking β€” Book rides by specifying pickup and drop locations through an intuitive CLI interface.
  • Dynamic Fare Calculation β€” Fares computed based on distance, time of day, and cab type (economy/premium).
  • Trip Scheduling β€” Schedule future rides with date/time inputs and manage upcoming bookings.
  • Driver & Passenger Roles β€” Separate flows for passengers booking rides and drivers accepting them.
  • OOP Architecture β€” Clean, modular design using Python classes for User, Driver, Ride, and Fare entities.
  • Booking History β€” View past trip records per user session.

πŸ› οΈ Tech Stack

Component Technology
Language Python 3
Paradigm Object-Oriented Programming (OOP)
Interface Command-Line Interface (CLI)
Storage In-memory / file-based

πŸ“ Project Structure

Cab-Hailing-System/
└── CAB/
    β”œβ”€β”€ main.py              # Entry point β€” CLI menu and app loop
    β”œβ”€β”€ user.py              # User and Driver class definitions
    β”œβ”€β”€ ride.py              # Ride booking and scheduling logic
    β”œβ”€β”€ fare.py              # Dynamic fare calculation engine
    └── utils.py             # Helper functions

βš™οΈ Getting Started

Prerequisites

  • Python 3.7+

Run the Application

# Clone the repository
git clone https://github.com/spinola103/Cab-Hailing-System.git
cd Cab-Hailing-System/CAB

# Run the application
python main.py

Follow the on-screen prompts to register, book a ride, or manage trips.


πŸ’‘ How It Works

  1. Register as a passenger or driver.
  2. Book a ride β€” enter your pickup and drop-off points.
  3. The system calculates the fare dynamically based on distance and demand.
  4. Schedule a ride for a future time or get an immediate booking.
  5. View your trip history at any point.

πŸ“„ License

Open-source. Contributions and forks welcome.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages