Managing ridesharing vehicles by receiving passenger data comprising pick-up and drop-off location data of passengers, recording the passenger data in one or more queues corresponding to one or more pick-up locations of the pick-up location data, and sending information associated with a first pick-up location to a first vehicle. In response to the first vehicle arriving at the first pick-up location, extracting data of passengers exiting the first vehicle at the first pick-up location, retrieving passenger data from a first queue corresponding to the first pick-up location according to a capacity of the first vehicle, and updating a passenger ledger of the first vehicle according to the data of the passengers exiting the first vehicle at the first pick-up location and the passenger data retrieved from the first queue.