Skip to content

nitin-nagaraj/cab-booking-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Cab Booking Problem

A cab booking CLI python project where a rider can book a cab, driver can accept/reject rides, admin can monitor rider and users.

Tech Stack

Client: Python

Project Features

  • Register a rider.
  • Register a driver/cab
  • Update a cab's location
  • A driver can switch on/off his availability
  • A rider can book a cab
  • Fetch history of all rides taken by a rider.
  • End the Trip

Project Requirements:

  • The location is represented as a (x, y) coordinate.
  • Distance between two points (x1, y1) and(x2, y2) is sqrt((x1-x2)^2 + (y1-y2)^2)
  • Platform has decided upon the maximum distance a driver has to travel to pickup a rider.
  • A cab has only 1 driver.
  • Sharing of cab is not allowed between riders
  • There is a single type of cab

Screenshots

Screenshot-2022-07-24-at-12-00-33.png

Screenshot-2022-07-24-at-12-02-17.png

Screenshot-2022-07-24-at-12-02-52.png

To run this project

Clone the project

  git clone https://github.com/nitin-nagaraj-au26/cab-booking-python.git

Go to the project directory

  cd cab-booking-python

Run the command

  python3 cabbooking.py

Project Video

About

A cab booking CLI python project where a rider can book a cab, driver can accept/reject rides, admin can monitor rider and users.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages