To calculate shipping based on distance users has to insert their location using map at checkout page –
As soon as users will insert their location shipping will be calculated and shown –
Now, if user’s location distance more than vendor’s deliverable “Max Distance” then such an error message will be shown and order processing will be blocked –