This endpoint has exactly the same functionality as /estimates/quote with the addition of driver availability.
When queried with two pairs of coordinates, corresponding to the pick-up and drop-off points, this endpoint will respond with an estimate of how long it might take in seconds, the distance that the driver will have to travel in meters (the routes are optimized), and a price quotation for the delivery.
Additionally, this endpoint returns driver availability - which is a list of active drivers grouped by vehicle class and sorted by the distance from the origin address.
Given items, the endpoint will only return drivers who are capable of transporting the items. I.e. drivers who have a vehicle that can accommodate the items.
See the below table for a description of the results returned by the endpoint:
Units
You'll notice the fields 'distance_from_pickup' and 'eta' in the above server response.
By default, the API uses SI base units to communicate time and distance.
(meters and seconds).
Response element | Type | Description |
---|---|---|
time | int | This is our estimate of the time, in seconds, that a driver would take to navigate from the point of pickup to the point of dropoff. |
distance | float | Estimate of the distance, in metres (through an optimised route). |
price | float | The charge, should you place the delivery. (The default currency is ZAR) |
quotes | list[Quote] | A list of of quotes that can be stored. |
driver_availability | DriverAvailability | Object that contains information about drivers capable of effecting the delivery |
Each Quote item has the following structure:
Property | Type | Description |
---|---|---|
type | string | The WumDrop package/vehicle type that this quote is for. |
price_estimate | float | The charge, should you use this quote when you place the delivery. (The default currency is ZAR) |
quote_id | long | A reference to this quote. Use when placing a delivery. |
DriverAvailability object has the following properties
Property | Type | Description |
---|---|---|
Bike | list[Driver] | list of Driver objects who drive bikes |
Truck | list[Driver] | list of Driver objects who drive trucks |
Car | list[Driver] | list of Driver objects who drive cars |
Each Driver object has the following properties
Property | Type | Description |
---|---|---|
distance_from_pickup | float | Distance from the origin address in metres |
eta | int | Travel time to origin address in seconds |
last_known_location_lat | float | latitude coordinate |
last_known_location_lon | float | longitude coordinate |
name | String | driver's name |