
If you have ever lost money on a distant delivery or overcharged a local customer with flat-rate shipping, you know how frustrating inaccurate shipping fees can be. The Distance Rate Shipping plugin for WooCommerce by Techspawn solves this problem by calculating shipping rates based on actual distance and delivery time between your store and your customer’s address.
Instead of guessing or using rigid shipping zones, this plugin pulls real geographic data from the Google Distance Matrix API to determine the precise distance and estimated travel duration for each order. You then apply your own custom rules to set fair, accurate rates that match your true delivery costs.
The plugin operates in two primary calculation modes: Time and Distance. When a customer enters their delivery address at checkout, the Google Distance Matrix API instantly calculates the distance and estimated travel time from your store to that location. The plugin then matches this data against the rules you have configured and applies the appropriate shipping rate automatically.
For instance, you might set a base rate for deliveries within 10 miles, then add a per-mile charge beyond that threshold. Alternatively, you can set tiered rates based on estimated delivery time. You can also layer in product weight or dimensions to refine the final shipping price for every item in the cart.
This plugin is designed for WooCommerce store owners who need more control and accuracy than flat-rate or zone-based shipping can provide. Common scenarios include:
Unlike flat-rate or static zone-based shipping methods, the Distance Rate Shipping plugin uses real geographic data to calculate rates. This means your shipping fees are based on actual distance and travel time, not arbitrary boundaries that may not reflect real-world delivery costs.
The rule-based system gives you the flexibility to create shipping policies that match your business needs, whether you are delivering locally or serving customers across a wider geographic area. By making your shipping costs transparent and accurate, you reduce disputes, improve customer trust, and ensure that every delivery is priced fairly.
How does the plugin calculate shipping distance?
The plugin uses the Google Distance Matrix API to calculate the distance and duration between two locations — your store and the customer’s delivery address.
Can I set rates based on both distance and delivery time?
Yes. The plugin offers both Time and Distance options, allowing you to create rules that apply different shipping rates based on distance, delivery time, or a combination of both.
Can I adjust shipping rates based on product weight or dimensions?
Yes. You can change the weight or dimensions of your products and set the shipping price for each item accordingly within the plugin’s shipping rate rules.
Is this plugin compatible with WooCommerce?
Yes. This plugin is built specifically for WooCommerce and integrates directly with the platform’s shipping system.
What kind of rules can I create with this plugin?
You can create various rules that apply different shipping rates to customers based on distance and delivery time to their location. Rules can also account for product weight and dimensions.
If you are looking for a flexible, data-driven way to manage shipping rates in your WooCommerce store, the Distance Rate Shipping plugin by Techspawn is a practical solution. With support for distance-based and time-based rate calculation, custom rule creation, and product-level adjustments, it gives you the control you need to price shipping accurately and keep your costs in check.