Delivery area calculation

Hi Frederico,

Unfortunately we can’t explicitly provide the distance before an order is placed, but depending on your use case, we have some initial suggestions - though do let us know if the case you had in mind wouldn’t cover this.

The Stuart API has a feature that will give you a pricing quote based on the parameters of the job you create. By calling the get pricing endpoint you will be able to receive a quote that will be the maximum possible price of the job, based on delivery distance, package size and transport type; We have a guide here that should explain in more detail how the pricing operates.
Hopefully this will help with identifying pricing for your customers!
Here is a link to our FAQ page that also outlines this.

In terms of restricting the area for your customers specifically, this is something we would recommend you try and integrate using a third-party service such as the google directions API.
For an easier method, some clients also use straight line distances with a radius slightly smaller than the intended distance to give a “good enough” accuracy

If you have any further questions please let us know!

Kind regards,

Henry