LLDHub
Problems·Ride Sharing System (Uber/Ola)
L6 · Intermediate

Ride Sharing System (Uber/Ola)

Problem

Design a ride sharing platform where riders request rides and drivers accept them.

Requirements

  • Rider requests ride with pickup and drop location
  • Match rider to nearest available driver
  • Fare calculation based on distance and time
  • Driver can accept or reject a ride
  • Real-time trip tracking
  • Rating system for both rider and driver
  • Support ride types: Economy, Premium, XL

Constraints

  • Driver matching timeout: 30 seconds
  • Surge pricing during peak hours
  • Minimum fare: ₹50
✓ Saved