HardDesign: Ride-Sharing Service (Uber/Lyft)
Why must neighboring geohash cells also be queried when searching for nearby drivers?
— Tests your understanding of this concept.
Answer Options
AFor better database performance
BA driver just outside the primary cell boundary would be missed without neighbor queries
CTo handle multiple car types
DTo avoid GPS errors
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 22+ more Design: Ride-Sharing Service (Uber/Lyft) questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the Design: Ride-Sharing Service (Uber/Lyft) topic (System Design Cases).
More Design: Ride-Sharing Service (Uber/Lyft) Questions
Why is Euclidean (straight-line) distance insufficient for ETA calculation in a ride-sharing app?
HardA driver's phone GPS has a 30-second outage. What happens to ongoing trip tracking?
HardWhat Redis data structure is used to store driver locations by geographic cell?
HardHow does surge pricing work and how do you ensure it's fair to riders?
HardThe system matches 10 drivers to the same rider request due to a bug. How do you prevent this?
Hard