Request
GET /rides/drivers/nearby
Latitude of the center point to search from.
Longitude of the center point to search from.
Search radius in kilometers. Defaults to
5 if not specified.Maximum number of drivers to return. Defaults to
10 if not specified.Response
An array of driver location objects. Returns an empty array if no drivers are found within the radius.Unique identifier of the driver.
Current latitude of the driver.
Current longitude of the driver.
Distance in kilometers from the queried coordinate to the driver’s current location.
Example
Driver locations are updated in real time as drivers report their positions. Results may be a few seconds behind each driver’s actual location.