r/howdidtheycodeit • ProProgrammer • Sep 30 '21

How does Uber/Lyft continuously track drivers and their locations relative to the user searching for a ride?

34 Upvotes

17 comments sorted by

View all comments

Show parent comment

2

u/introvertnudist Oct 01 '21

Yeah; so all the drivers' apps are constantly pinging, and all the users' apps are constantly pinging, so their back-end server knows where everyone is at. Your phone requests a radius location and it'll send info on all the drivers (probably anonymized for privacy, giving just enough info to draw an icon on a map.. driver and passenger prolly aren't given details of each other until the ride is accepted and your driver is on their way).