Pickup time less than 10 minutes apart, Pickup distance is 10miles apart, drop off less than 10miles from eachother
Step 1: Driver's Current Location
Available Passengers must be 10miles away from the driver's current location.
The pick-up time is no more than 30 minutes apart from eachother.
Passengers are 10 miles from other passenger's location, and traveling within 15 miles.
Step 2: Passenger's Current Location
Step 3: Driver's Distance To Passengers
Step 4: Distance Between Passenger's Pickup Location
Step 5: Passenger's Booking Distance
Distance Between Passenger's Drop-off Locations
Who Gets Picked Up First?
Subtract the earliest pick-up time of the passengers by the travel time between their starting location.
Round the answer above to the lowest tenth-minute.
Subtract an extra 5 minutes from the answer above.
The closest passenger to the driver will be picked up first based on #1 and the pick-up time will be based on the answer from two questions above.
The first passenger to be dropped of is determined by who ever scheduled the earliest pick up time.
The time the first passenger should be dropped of is based on the new pickup time + travel time from pickup location.
The time the second passenger should be dropped off is based on the first passenger's drop-off time + travel time from the first passenger's drop-off location the second passengers drop off location.