get https://api.wumdrop.com/v1/estimates/quote
Retrieve an estimate of the price(s), time, and distance for a delivery from a point A to a point B.
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 metres (the routes are optimised), and a price quotation for the delivery. See the below table for a description:
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 | int | 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. |
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. |