Delivery validation: Delivery max driving distance
Kurvi Kansagra
Last Update 9 days ago
The Delivery Max Driving Distance option validates the customer's address by calculating the actual driving distance from your delivery location. The customer can proceed to checkout only if their address is within the maximum driving distance configured for that location.
Unlike the Delivery Max Radius option, which measures the straight-line distance, this option uses the road network to calculate the driving distance. It is recommended when you want delivery eligibility to reflect the actual travel distance rather than the direct distance between two points.
Inside GAF - Store Pickup & Delivery APP click Settings navigation

Please scroll down to the Distance validation section. Select the "Delivery max driving distance" option. Also, Add the required Google Map API Key

Select whether the driving route should avoid highways, tolls, or ferries.

Select the route options:
- The fastest route will assess traffic conditions and select the fastest route at the time of entering the address.
- The shortest route will always select the shortest possible route.

Once you configure it, Click Save!
The distance is the actual driving distance from your store location to the customer's address.

Add Max driving distance in a location
Go to Locations, Add or Edit existing location

Inside Local Delivery section. you can see the Max Distance field, enter a distance in KM

Once you configure it, Click Save!
Set Max distance in all of the locations that offer local delivery.
When selecting the Local Delivery method, the customer will see the address field on the widget. They can fill in their address and search it. A success or error message will appear indicating whether the address is within the location's driving distance or not.

If the address is not within driving distance, they will get an error and not be able to proceed to checkout.

Enable the "Enable address autocompletion" checkbox in Local delivery setting

The customer will see auto populated addresses which Google suggests.

